urls.py 1.1 KB

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