urls.py 496 B

1234567891011121314151617
  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.load_index, name='generate_link'),
  9. path('check', views.check_user_id, name='check_user_id'),
  10. path('generate', views.generate_user_link, name='generate_user_link'),
  11. ]
  12. if settings.DEBUG is True:
  13. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)