urls.py 442 B

123456789101112131415
  1. from django.contrib import admin
  2. from django.urls import path
  3. from django.conf import settings
  4. from django.conf.urls.static import static
  5. from . import views
  6. urlpatterns = [
  7. path('', views.expe_list, name='expe_list'),
  8. path('expe', views.expe, name='expe'),
  9. path('indications', views.indications, name='indications'),
  10. ]
  11. if settings.DEBUG is True:
  12. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)