refactor python package structure
This commit is contained in:
parent
9eff769622
commit
8c9671602b
19 changed files with 56 additions and 49 deletions
16
hub/urls.py
Normal file
16
hub/urls.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue