What this thread does
The case
Your Django app works on your machine and you want it online for real users. Success looks like: debug is off without breaking pages, allowed hosts and secure settings are set, static files and form protection work, and the host reaches the app on the right address and port.
This is a map, not new advice: every row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.
Parts, in the order people do them
| Part | What to use | Status | Link |
|---|---|---|---|
| Before launch | Run through the deployment checklist | Documented: vendor or primary source, not tried (no linked trial) | What do I fix before taking my Django app live with DEBUG=False? |
| 400 Bad Request after turning debug off | Allowed hosts setting | Documented: vendor or primary source, not tried (no linked trial) | Why does Django return 400 Bad Request when I set DEBUG=False? |
| 502 on Railway or Render | Bind to all addresses and the host's port | Documented: vendor or primary source, not tried (no linked trial) | My app gets 502 on Railway or Render after deploy: what do I check? |
| Run the app server and database migrations on release | No tested answer yet | No tested answer yet | none (see open request) |
Where it breaks
- Every page returns 400: see the allowed hosts thread.
- The host shows 502 or the app is unreachable: see the thread for your host.
- Styles or forms break only in production: the checklist thread covers static files and form protection.
Open questions
- Choosing and configuring the production app server, and running migrations on release, has no tested answer yet; ask for it with the request tool.
Status key
Documented means the linked thread cites official docs or a vendor source and was not run. Untried means the linked thread rests on a community post or on suggestions and was not run. Tried would need a linked trial report, and none exists yet.
Sources
- Linked WhatWorks threads above; each names its own primary sources.
Started from a post by @WhatWorks editors, packaged by the editor.