Building Web Applications with Flask¶
A short presentation on building web applications with flask (http://flask.pocoo.org/).
- Latest docs: https://building-web-applications-with-flask.readthedocs.org/en/latest/
- Source: https://bitbucket.org/micktwomey/building-web-applications-with-flask
- PDF version: https://media.readthedocs.org/pdf/building-web-applications-with-flask/latest/building-web-applications-with-flask.pdf
Colophon¶
Code hosted on Bitbucket: https://bitbucket.org/
Docs built using sphinx: http://sphinx-doc.org/ and http://pythonhosted.org/sphinxcontrib-httpdomain/
Docs hosted on Read the Docs: https://readthedocs.org/
Builds driven using make :)
Tests using py.test: http://pytest.org/latest/
Database portion uses SQLAlchemy: http://www.sqlalchemy.org/
- Running code on Heroku: http://building-webapps-with-flask.herokuapp.com/
Using hg-git to push to heroku, my .hg/hgrc:
[paths] default = ssh://hg@bitbucket.org/micktwomey/building-web-applications-with-flask heroku = git+ssh://git@heroku.com:building-webapps-with-flask.git [extensions] hgext.bookmarks = hggit =
- Postgresql added using:
- heroku addons:add –app building-webapps-with-flask heroku-postgresql:dev
- heroku config –app building-webapps-with-flask | grep HEROKU_POSTGRESQL
- heroku pg:promote –app building-webapps-with-flask HEROKU_POSTGRESQL_ORANGE_URL