Skip to content

Instantly share code, notes, and snippets.

@the-vampiire
Created April 1, 2018 23:50
Show Gist options
  • Select an option

  • Save the-vampiire/22240f0f94aac1643aa2c644ca4c1182 to your computer and use it in GitHub Desktop.

Select an option

Save the-vampiire/22240f0f94aac1643aa2c644ca4c1182 to your computer and use it in GitHub Desktop.
shell script for removing Django environment variables on 'conda deactivate' call
# 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
@the-vampiire
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment