urls.py 1.1 KB

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