Skip to content

diegotoral/generator-django-demo

Repository files navigation

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
    
  3. Clone this repo into a sub-directory of the new virtualenv:

    $ git clone [email protected]:diegotoral/generator-django-demo.git
    $ cd generator-django-demo/
    
  4. Go through the following files, editing as necessary:

    `settings/testing.py`
    `settings/development.py`
    
  5. 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.

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages