website/hub/urls.py

16 lines
505 B
Python
Raw Normal View History

2025-01-27 15:07:38 +01:00
from django.conf import settings
from django.conf.urls.static import static
2025-01-27 14:58:23 +01:00
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path("admin/", admin.site.urls),
2025-01-30 11:23:25 +01:00
path("", include("hub.services.urls")),
2025-01-27 14:58:23 +01:00
]
2025-01-27 15:07:38 +01:00
if settings.DEBUG:
urlpatterns += [
path("__reload__/", include("django_browser_reload.urls")),
2025-01-28 13:55:43 +01:00
path("schema-viewer/", include("schema_viewer.urls")),
2025-01-27 15:07:38 +01:00
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)