Auto-generated from Kevin Xu's Django Project Builder
- Kevin Xu [email protected]
- Charlie Guo [email protected]
- Kingston Tam [email protected]
For best results, make sure you have at least:
- Python 2.7.2
- Django 1.4.1
- Jinja2 templating with Coffin
- Django Debug Toolbar
- bcrypt password hashing
- South database migration
# after initial git clone of existing repo
cd cardinalwebdev/
mkvirtualenv cardinalwebdev # requires proper virtualenv setup
workon cardinalwebdev # sets the virtual environment
pip install -r requirements.txt # installs all python packages
python manage.py syncdb # sets up django database
python manage.py migrate cardinalwebdev_app # migrates any south migrations
In case something's not working after pulling, try one of these:
workon cardinalwebdev # make sure you're in the right virtual environment
pip install -r requirements.txt # make sure python packages are up to date
python manage.py migrate cardinalwebdev_app # make sure database schema is migrated
If you are missing some dependencies like pip
, django
, virtualenv
, orvirtualenvwrapper
then try downloading and running this script or use this line of code:
curl -O https://raw.github.com/imkevinxu/django-projectbuilder/master/install_dependencies.sh && source install_dependencies.sh && rm -f install_dependencies.sh
Script has been tested with Mac OSX 10.7 (Lion) and 10.8 (Mountain Lion) so far.