Django settings
Django settings
A Django settings file contains all the configuration of your Django installation. This document explains how settings work and which settings are available.
The basics
A settings file is just a Python module with module-level variables.
Here are a couple of example settings:
ALLOWED_HOSTS = ['www.example.com'] DEBUG = False DEFAULT_FROM_EMAIL = 'webmaster@example.com'
Note
If you set DEBUG
to False
, you also need to properly set the ALLOWED_HOSTS
setting.
Because a settings file is a Py