pip install python-decouple
DEBUG = True TEMPLATE_DEBUG = True SECRET_KEY = yoursecretkey
from decopule import config DEBUG = config('DEBUG', cast=bool) SECRET_KEY = config('SECRET_KEY') EMAIL_HOST = config('EMAIL_HOST', default='localhost')