How do you add environment variables to your django project
问题 I'm trying to set up my project so that it can use environment variables locally Ive tried adding it to the end of my activate file and a list of other things. I'm trying to use this from .base import * if os.environ['DJANGO_SERVER_TYPE'] == 'local': try: from .local import * except: pass if os.environ['DJANGO_SERVER_TYPE'] == 'production': try: from .production import * except: pass I am a real novice and often things are explained brief and matter of factly. So a thorough explanation would