Skip to content

Instantly share code, notes, and snippets.

@jasjukaitis
Created October 18, 2013 18:06
Show Gist options
  • Save jasjukaitis/7045608 to your computer and use it in GitHub Desktop.
Save jasjukaitis/7045608 to your computer and use it in GitHub Desktop.
Inits a project made with the django-cms-boilerplate
#!/bin/sh
# Inits a project made with the django-cms-boilerplate
# Requires virtualenvwrapper and pip
# Create virtualenv if no active
if [ "$VIRTUAL_ENV" == "" ]; then
echo "Creating virtualenv... Name?"
read venvname
source virtualenvwrapper.sh
mkvirtualenv --no-site-packages $venvname
workon $venvname
else echo "Using active virtualenv."
fi
pip install django fabric
fab install_dev_requirements syncdb mo
@SpotlightKid
Copy link

You need to create <project>/settings/local.py with a SECRET_KEY setting before running fab install_dev_requirements, e.g. before line 14:

python -c "import uuid; print('SECRET_KEY = \"%s\"' % uuid.uuid1())" > \
    <project>/settings/local.py

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