Django notes
Jump to navigation
Jump to search
✎ 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