duck.backend.django.bridge¶
This module acts as a bridge between a Django server and a Duck server. It allows Django to handle requests that are originally meant for the Duck server.
Here’s how it works:
Client sends a request: The client initiates a request to the Duck server.
Duck server receives request: The Duck server receives the request first.
Request forwarded to Django: The Duck server forwards the request to the Django server on the same network.
Django processes request: Django handles the request as if the route was defined within Duck urls.py or in Django itself.
Response sent to client: The response generated by Django is sent back to the client.
Module Contents¶
Functions¶
Executes essential Django management commands, usually makemigrations, migrate, and collectstatic. |
|
Starts the Django application server. |