Django notes: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#addbodyclass:tag_tech}} | {{#addbodyclass:tag_tech}} | ||
{{stub}} | {{stub}} | ||
Latest revision as of 13:51, 10 May 2024
✎ This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.
Auth
Sessions
Errors
ModuleNotFoundError
If hosting via mod_wsgi, you probably want to add python-path=/path/to/app to your WSGIDaemonProcess line
DisallowedHost at /
ALLOWED_HOSTS should contain a list of the host/domain names that this Django site can serve.
It's empty when you start a project, to make you do this explicitly and knowingly
...because it's protection against some exploits based on Host headers.
See also