urls.py 801 B

12345678910111213141516171819202122232425
  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. urlpatterns = (
  6. [
  7. path('admin/doc/', include('django.contrib.admindocs.urls')),
  8. path('admin/', admin.site.urls),
  9. path('', include('SharixAdmin.urls')),
  10. path('tickets/', include("tickets.urls"), name='tickets'),
  11. #metaservice
  12. path('metaservicesynced/', include("metaservicesynced.urls"), name="metaservicesynced"),
  13. path('openlocal/', include("openlocal.urls"), name="openlocal"),
  14. ]
  15. + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  16. + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  17. )
  18. if settings.DEBUG:
  19. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)