Django-Pal does two things.
- It creates a Django project based on the Django project template in https://github.com/suneel0101/django-foundation.
- Then, it deploys to Heroku.
git clone git://github.com/suneel0101/django-pal.git && cd django-palpython 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/directoryvirtualenv venv --distribute && . venv/bin/activatemake
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