urls.py 412 B

12345678910111213141516
  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.list_files, name='list_files'),
  9. path('links', views.user_links, name='user_links'),
  10. ]
  11. if settings.DEBUG is True:
  12. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)