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).
- Host: GitHub
- URL: https://github.com/diegotoral/generator-django-demo
- Owner: diegotoral
- Created: 2015-04-01T19:45:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-02T01:12:13.000Z (about 10 years ago)
- Last Synced: 2025-01-17T15:16:42.574Z (4 months ago)
- Language: Python
- Size: 117 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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/activate2. 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/activate6. Install the basic project requirements:
$ easy_install pip
$ pip install -r requirements/DEVELOPMENT
$ pip install -r requirements/TESTING
$ npm install
$ bower installAs 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 apppython ./manage.py runserver