refactor python package structure

This commit is contained in:
Tobias Brunner 2025-01-30 11:23:25 +01:00
parent 9eff769622
commit 8c9671602b
No known key found for this signature in database
19 changed files with 56 additions and 49 deletions

16
hub/urls.py Normal file
View file

@ -0,0 +1,16 @@
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path("admin/", admin.site.urls),
path("", include("hub.services.urls")),
path("broker/", include("hub.servicebroker.urls")),
]
if settings.DEBUG:
urlpatterns += [
path("__reload__/", include("django_browser_reload.urls")),
path("schema-viewer/", include("schema_viewer.urls")),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)