mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #19875 - Added warnings regarding DEBUG=False and empty ALLOWED_HOSTS
This commit is contained in:
parent
175a102ddc
commit
4e94c84e50
3 changed files with 16 additions and 0 deletions
|
@ -17,6 +17,11 @@ Here are a couple of example settings::
|
|||
DEFAULT_FROM_EMAIL = 'webmaster@example.com'
|
||||
TEMPLATE_DIRS = ('/home/templates/mike', '/home/templates/john')
|
||||
|
||||
.. note::
|
||||
|
||||
If you set :setting:`DEBUG` to ``False``, you also need to properly set
|
||||
the :setting:`ALLOWED_HOSTS` setting.
|
||||
|
||||
Because a settings file is a Python module, the following apply:
|
||||
|
||||
* It doesn't allow for Python syntax errors.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue