urls.py 732 B

123456789101112131415161718192021222324
  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. #metaservice
  12. path('metaservicesynced/', include("metaservicesynced.urls"), name="metaservicesynced"),
  13. ]
  14. + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  15. + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  16. )
  17. if settings.DEBUG:
  18. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)