urls.py 749 B

12345678910111213141516171819
  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. path('admin/doc/', include('django.contrib.admindocs.urls')),
  7. path('admin/', admin.site.urls),
  8. path('', include('SharixAdmin.urls')),
  9. path('tickets/', include('tickets.urls', namespace='tickets'), name='tickets'),
  10. path('metaservicesynced/', include("metaservicesynced.urls"), name="metaservicesynced"),
  11. ]
  12. if settings.DEBUG:
  13. urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  14. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  15. urlpatterns.append(path("__debug__/", include("debug_toolbar.urls")))