An open API service indexing awesome lists of open source software.

https://github.com/diegotoral/generator-django-demo

Sample app using Yeoman Django generator (generator-django).
https://github.com/diegotoral/generator-django-demo

Last synced: about 2 months ago
JSON representation

Sample app using Yeoman Django generator (generator-django).

Awesome Lists containing this project

README

        

generator-django-demo
=====================
---------------------

## Installation and configuration

1. Install Python, virtualenv and npm.

2. 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

2. Clone this repo into a sub-directory of the new virtualenv:

$ git clone [email protected]:diegotoral/generator-django-demo.git
$ cd generator-django-demo/

3. Go through the following files, editing as necessary:

`settings/testing.py`
`settings/development.py`

4. 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.

5. 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

6. 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.

## Running your app

python ./manage.py runserver