Cyberdelia

Mon nom est Timothée Peignier. Je travaille avec un tas de gens biens avec lesquels je fais des choses comme Croisé dans le métro et plein d’autres encore

Je suis un ingénieur un peu fou et aussi un peu entrepreneur.

Je fais aussi dans la manufacture d'oeuvres électriques de luxe avec deux autres orfèvres pour La Panthère.

Django and Heroku, the fast track

Want to start using Heroku with Django ? This is the fastest way I’ve found as soon as django 1.4 is out the door.

First, install foreman and heroku gems

$ gem install foreman heroku

Create your Django project

$ django-admin.py startproject --template https://github.com/cyberdelia/django-heroku-template/zipball/master --extension py,md --name Procfile heroku-app

Make it a git repository

$ cd heroku-app
$ git init

Create the app at heroku

$ heroku apps:create -s cedar heroku-app

Add redis addons to your heroku app

$ heroku addons:add redistogo:nano   

Because settings use Redis as a default cache backend.

Create and activate you virtualenv

$ mkvirtualenv heroku-app
$ workon heroku-app 

Install dependencies

$ pip install -r requirements.txt

Edit configuration

Settings are read from the .env file by foreman. settings.py loads them from os.environ and uses default heroku environment variables to setup databases and cache.

Start your application

$ foreman start 

or

$ foreman run heroku-app/manage.py runserver

Run a command

$ foreman run heroku-app/manage.py shell

Deploy it to heroku

$ git push heroku master

Have fun! And if you want even more from your heroku app, you can use your own python buildpack.