1
0

urls.py 1.0 KB

1234567891011121314151617181920212223242526
  1. from django.contrib import admin
  2. from django.urls import include, path
  3. from django.conf import settings
  4. from django.conf.urls.static import static
  5. from django.conf.urls.i18n import i18n_patterns
  6. urlpatterns = [
  7. path('admin/', admin.site.urls),
  8. ] + i18n_patterns(
  9. path('i18n/', include('django.conf.urls.i18n')),
  10. path('', include('SharixAdmin.urls')),
  11. path('tickets/', include('tickets.urls', namespace='tickets'), name='tickets'),
  12. path('design/', include("design_template.urls"), name='design'),
  13. path('dbsynce/', include("dbsynce.urls"), name="dbsynce"),
  14. path('webservice/', include("webservice_running.urls"), name='webservice_running'),
  15. path('landing/', include("landing.urls"), name="landing"),
  16. prefix_default_language=False,
  17. )
  18. if settings.DEBUG:
  19. urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  20. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  21. urlpatterns.append(path("__debug__/", include("debug_toolbar.urls")))