urls.py 1.0 KB

1234567891011121314151617181920212223242526272829
  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('webservice/', include("webservice_running.urls"), name='webservice_running'), prefix_default_language=False,
  18. )
  19. )
  20. if settings.DEBUG:
  21. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  22. urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)