Skip to content
rollick edited this page Apr 10, 2014 · 7 revisions

Setup with Zsh

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.

Clone this wiki locally