urls.py 1.1 KB

123456789101112131415161718192021222324252627
  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. from django.conf.urls.i18n import i18n_patterns
  6. urlpatterns = [
  7. path('admin/doc/', include('django.contrib.admindocs.urls')),
  8. path('admin/', admin.site.urls),
  9. ] + i18n_patterns(
  10. path('i18n/', include('django.conf.urls.i18n')),
  11. path('', include('SharixAdmin.urls')),
  12. path('tickets/', include('tickets.urls', namespace='tickets'), name='tickets'),
  13. path('design/', include("design_template.urls"), name='design'),
  14. path('dbsynce/', include("dbsynce.urls"), name="dbsynce"),
  15. path('webservice/', include("webservice_running.urls"), name='webservice_running'),
  16. path('landing/', include("landing.urls"), name="landing"),
  17. prefix_default_language=False,
  18. )
  19. if settings.DEBUG:
  20. urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  21. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  22. urlpatterns.append(path("__debug__/", include("debug_toolbar.urls")))