Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A skeleton repository for Heroku-based Python applications
Python
branch: master
Failed to load latest commit information.
static/css initial commit
templates initial commit
Procfile Run on gunicorn in production
README.md Update README.md
app.py Update to use DATABASE_URL
requirements.txt Run on gunicorn in production

README.md

Heroku Python Skeleton

This repository has all the base files ready for deploying a Heroku application, including a simple database model managed with flask-sqlalchemy.

Usage

Initial

$ git clone https://github.com/yuvadm/heroku-python-skeleton.git
$ cd heroku-python-skeleton
$ heroku create
$ git push heroku master

Database

$ heroku addons:add heroku-postgresql:dev
-----> Adding heroku-postgresql:dev to some-app-name... done, v196 (free)
Attached as HEROKU_POSTGRESQL_COLOR
Database has been created and is available
$ heroku pg:promote HEROKU_POSTGRESQL_COLOR
$ heroku run python

and in the Python REPL:

>>> from app import db
>>> db.create_all()

For a detailed introduction see http://blog.y3xz.com/blog/2012/08/16/flask-and-postgresql-on-heroku/.

Something went wrong with that request. Please try again.