Last active
June 15, 2019 17:52
-
-
Save jgram925/92d096c50198f9bd80f31267b36d12bb to your computer and use it in GitHub Desktop.
Virtualenvwrapper: Set Django Settings Module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# envs/<project_name>/bin/postactivate | |
export DJANGO_SETTINGS_MODULE=<project_name>.<settings_folder_name>.<settings_file_name> | |
# envs/<project_name>/bin/postdeactivate | |
unset DJANGO_SETTINGS_MODULE | |
# IF using supervisord to run gunicorn, need to set environment variable in supervisord.conf | |
environment=DJANGO_SETTINGS_MODULE=<project_name>.<settings_folder_name>.<settings_file_name> | |
# Check that the DJANGO_SETTINGS_MODULE is set correctly from BASH | |
echo $DJANGO_SETTINGS_MODULE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment