Reference
Django Integration
Exact reference for include_routes and Django URL wiring.
This page focuses on the practical details. Use the quick links below to move to the previous, next, or related docs.
include_routes(url_prefix="")
Import:
from hyperdjango.urls import include_routes
Usage:
from django.contrib import admin
from django.urls import path
from hyperdjango.urls import include_routes
urlpatterns = [
path("admin/", admin.site.urls),
*include_routes(),
]
Arguments:
url_prefix: str = ""Mount every compiled HyperDjango route under a prefix without changing the route files themselves.
Behavior:
- scans
HYPER_FRONTEND_DIR / "routes"for+page.pyfiles - compiles route segments into Django
path(...)orre_path(...)entries - returns a list of URL patterns you can spread directly into
urlpatterns
Notes:
url_prefixis purely a mount-time prefix; it does not change route names or page classes- if
APPEND_SLASHis enabled, compiled routes include trailing slashes - route conflicts are detected at compile time
Page navigation