Introduce a new `prod.py` settings file for the production environment. This file disables debug mode and sets up a console email backend. It also attempts to import local settings, if available.main
parent
70935c497a
commit
d84f70214a
@ -0,0 +1,13 @@ |
|||||||
|
from .base import * |
||||||
|
|
||||||
|
|
||||||
|
DEBUG = False |
||||||
|
TEMPLATE_DEBUG = True |
||||||
|
|
||||||
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' |
||||||
|
|
||||||
|
|
||||||
|
try: |
||||||
|
from .local import * |
||||||
|
except ImportError: |
||||||
|
pass |
Loading…
Reference in new issue