No description, website, or topics provided.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Django + Heroku + Bootstrap Example

This is a small example of a Django app which uses Twitter's bootstrap for it's front end templates and runs on Heroku. You can see a working example here. The https version can be seen here.

Command cheat sheet

Setting up the git repo:

$ git remote show origin
$ git remote rm origin
$ git remote show origin
$ git remote add origin
$ git remote add heroku

Load DB and fixtures:

$ python syncdb
$ python loaddata people

Creating admin users:

$ heroku run python shell
>>> from django.contrib.auth.models import User
>>> admin_user = User.objects.create_superuser('mark', '', 'pass')

Pushing to github and heroku:

$ git push -u origin master
$ git push -u heroku master

Setting up Heroku:

$ heroku run python syncdb
$ heroku run python loaddata people

.git/config contents:

    repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "heroku"]
	url =
	fetch = +refs/heads/*:refs/remotes/heroku/*
[remote "origin"]
	url =
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

Celery processor:

$ foreman start
$ heroku ps:scale celeryd=1