-
Install Python, virtualenv and npm.
-
Make, enter and activate a virtualenv:
$ virtualenv generator-django-demo --no-site-packages New python executable in clientes/bin/python Installing setuptools............done. $ cd generator-django-demo/ $ . bin/activate
-
Clone this repo into a sub-directory of the new virtualenv:
$ git clone [email protected]:diegotoral/generator-django-demo.git $ cd generator-django-demo/
-
Go through the following files, editing as necessary:
`settings/testing.py` `settings/development.py`
-
Symlink the project directory into the virtualenv's
site-packages
:$ ln -s `pwd` ../lib/python2.6/site-packages/generator-django-demo
Replace
python2.6
with the installed version of Python on your machine. -
Set the
DJANGO_SETTINGS_MODULE
environment variable now, and on every virtualenv activation:$ export DJANGO_SETTINGS_MODULE=generator-django-demo.settings.development $ echo "!!" >> ../bin/activate
-
Install the basic project requirements:
$ easy_install pip $ pip install -r requirements/DEVELOPMENT $ pip install -r requirements/TESTING $ npm install $ bower install
As you edit your
REQUIREMENTS
files, you can run those last commands again;pip
will realize which packages you've added and will ignore those already installed.
python ./manage.py runserver