Demo app for the 101 track for TechCamp Memphis 2012 Fall
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
styles
templates
AUTHORS.txt
LICENSE.txt
Procfile
README.md
main.py
main2.py
requirements.txt

README.md

tcguestbook

This repo contains a simple guestbook app build with Flask and MongoDB.

It is the basis for a beginner-level workshop to be given at TechCamp Memphis.

Files

  • main.py contains the app written with function-based views.
  • main2.py contains a version of the app written with class-based views.

Note

In both main.py and main2.py one more line of code needs to be added in order to deploy the application to Heroku. After adding the MongoLab add-on to the application, get the value of MONGOLAB_URI from the heroku config command. Then, after the line host="0.0.0.0", add the following: connect("{{ database_name }}", host="{{ MONGOLAB_URI }}"). The MONGOLAB_URI is omitted from the public repository because it contains a password.

License

This project is released under the terms of the MIT license. See the LICENSE.txt file for details.