This project uses Django 1.5.1.
Locations of important files:
project_name/
Django project and appsdocs/
- project documentation (Sphinx)requirements/
- project dependenciesstatic/
- static mediatemplates/
- project HTML templates
The following will help you get a development environment up and running:
?> virtualenv --distribute {{ project_name }}_env ?> cd {{ project_name }}_env ?> source ../bin/activate ?> git clone git@github.com:Threespot/{{ project_name }}.git ?> cd {{ project_name }} ?> pip install -r requirements/base.txt ?> pip install -r requirements/development.txt ?> ./manage.py syncdb --settings={{ project_name }}.settings.dev ?> ./manage.py runserver --settings={{ project_name }}.settings.dev
You can avoid having to pass the --settings={{ project_name }}.settings.dev
argument to management commands by setting the DJANGO_SETTINGS_MODULE
environmental variable. Just add the following line to your virtualenv's bin/activate
script:
export DJANGO_SETTINGS_MODULE="{{ project_name }}.settings.dev"
Read more about how Threespot does Django.