urls.py 670 B

1234567891011121314151617181920
  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. app_name = 'expe'
  7. urlpatterns = [
  8. path('', views.expe_list, name='expe_list'),
  9. path('expe', views.expe, name='expe'),
  10. path('indications', views.indications, name='indications'),
  11. path('admin/results', views.list_results, name='results'),
  12. path('admin/results/<str:expe>', views.list_results, name='results_expe'),
  13. path('admin/download', views.download_result, name='download')
  14. ]
  15. if settings.DEBUG is True:
  16. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)