Django-Pal does two things.
- It creates a Django project based on the Django project template in http://github.com/suneel0101/django-foundation.
- Then, it deploys to Heroku.
git clone git://github.com/suneel0101/django-pal.git && cd django-pal
python create.py --path="/path/to/proj/directory/" --name="your-project-name"
Now, your application is deployed to Heroku. Now, setup your local development enviornment:
cd /path/to/proj/directory
virtualenv venv --distribute && . venv/bin/activate
make
Step 5 will install requirements within your virtualenv and sync and migrate the database. Finally, it will runserver.
You may find the following addons helpful in developing your application. Adding them is as easy as including a flag in the create command. Use as many of the following as you like.
run the create
command with --all
to get easily add all of the below addons.
run the create
command with --compass
This will create a compass project under media/ and will also have compass version of Twitter Bootstrap already imported into screen.scss as per https://github.com/vwall/compass-twitter-bootstrap.
run the create
command with --emailer
This will create a django-emailer app (https://github.com/suneel0101/django-emailer) called emailer
under apps/
run the create
command with --redis
This will add a file under apps/util called rediz.py that has some basic and useful helpers for Redis usage (https://github.com/suneel0101/django-pal-redis-helper)
run the create
command with --newrelic
This will automatically add free NewRelic tracking to your web application. Checkout the NewRelic on Heroku here: https://addons.heroku.com/newrelic.
- Heroku account and toolbelt
- git
- pip