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

Working with Python application logs

In this recipe, you will learn how to add view and logging to your Python applications. As discussed in Chapter 8, OpenShift for Python Developers, OpenShift Python applications use Apache with mod_wsgi.

Getting ready

This recipe will use the application created in the Creating and deploying Flask web applications using Python and PostgreSQL cartridges recipe in Chapter 8, OpenShift for Python Developers. You can recreate the application using the following command:

$ rhc create-app jobstore python-2.7 postgresql-9.2 --from-code https://github.com/OpenShift-Cookbook/chapter8-jobstore-python-flask.git

How to do it…

Perform the following steps:

  1. Open a new command-line terminal, and navigate to the directory where ...

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