-
Notifications
You must be signed in to change notification settings - Fork 18
Virtualenwrapper
rollick edited this page Apr 10, 2014
·
7 revisions
Create virtualenv with same name as directory for git checkout
cd <bluebottle>
mkvirtualenv bluebottle
Set DJANGO_SETTINGS_MODULE when activating the env => cd'ing into it will trigger this
echo "export DJANGO_SETTINGS_MODULE=bluebottle.settings.base" >> ~/.virtualenvs/bluebottle/bin/postactivate
Unset DJANGO_SETTINGS_MODULE when deactivating the env
echo "unset DJANGO_SETTINGS_MODULE" >> ~/.virtualenvs/bluebottle/bin/postdeactivate
Add 'virtualenvwrapper' plugin to zsh/oh-my-zsh so that the env is automatically loaded when entering the project directory.