O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and deploying Flask web applications using Python and PostgreSQL cartridges

In this recipe, you will develop a simple job portal application using the Python Flask web framework (http://flask.pocoo.org/) and the PostgreSQL database. I have chosen Flask because it is a very easy-to-use and popular web framework. You can run any web framework, such as Django, Bottle, Zope, and Tornado, on OpenShift. The example application will allow users to post job openings and view a list of all the persisted jobs in the system. These two functionalities will be exposed using the two REST endpoints. The source code for this recipe is available on GitHub at https://github.com/OpenShift-Cookbook/chapter8-jobstore-simple.

Getting ready

This recipe is based ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required