Created
April 1, 2018 23:50
-
-
Save the-vampiire/22240f0f94aac1643aa2c644ca4c1182 to your computer and use it in GitHub Desktop.
shell script for removing Django environment variables on 'conda deactivate' call
This file contains hidden or 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
| # when you call conda deactivate this script will be executed | |
| # removes the environment variables automatically on environment deactivation | |
| # this goes in /anaconda3/envs/ENVIRONMENT-NAME/etc/conda/deactivate.d | |
| unset DEBUG SECRET_KEY DB_HOST DB_PORT DB_NAME DB_USER DB_PASSWORD STATIC_URL |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from my article on deploying a django project to google cloud