Answers for "define the environment variable DJANGO_SETTINGS_MODULE"

2

access the value in settings django

#settings.py

EMAIL_PASS = "FOO"

# in any file 
from django.conf import settings 
email_password = settings.EMAIL_PASS #to access that variable.
Posted by: Guest on January-03-2021

Code answers related to "define the environment variable DJANGO_SETTINGS_MODULE"

Python Answers by Framework

Browse Popular Code Answers by Language