urls.py 622 B

12345678910111213141516171819202122
  1. from django.contrib import admin
  2. from django.conf import settings
  3. from django.urls import path, include
  4. from django.conf.urls.static import static
  5. urlpatterns = (
  6. [
  7. path('admin/doc/', include('django.contrib.admindocs.urls')),
  8. path('admin/', admin.site.urls),
  9. path('', include('SharixAdmin.urls')),
  10. path('tickets/', include("tickets.urls"), name='tickets'),
  11. ]
  12. + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  13. + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  14. )
  15. if settings.DEBUG:
  16. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)