urls.py 391 B

1234567891011121314
  1. from django.contrib import admin
  2. from django.urls import path
  3. from django.conf.urls.static import static
  4. from django.conf import settings
  5. from sharing import views
  6. urlpatterns = [
  7. # path('admin/', admin.site.urls),
  8. path('upload/', views.upload),
  9. path('<uuid:uid>/', views.download),
  10. path('', views.index),
  11. ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)