asphalt.web.django
- class asphalt.web.django.DjangoComponent(components=None, *, app, host='127.0.0.1', port=8000, middlewares=())
Bases:
ASGIComponent
[ASGIHandler
]A component that serves a Django application.
- Parameters:
app (django.core.handlers.asgi.ASGIHandler) – the Django ASGI handler object
host – the IP address to bind to
port – the port to bind to
middlewares – list of callables or dicts to be added as middleware using
add_middleware()