From 951e69d0ea52a9828bc08aeec2457d5e041658a6 Mon Sep 17 00:00:00 2001 From: Sascha Gottfried Date: Wed, 11 Mar 2015 18:26:36 +0100 Subject: [PATCH] Update real_world_example.rst apply python syntax highlighting to code block. Now readers can copy & paste the code into their application. --- docs/examples/real_world_example.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/examples/real_world_example.rst b/docs/examples/real_world_example.rst index e85a94ab..1575d589 100644 --- a/docs/examples/real_world_example.rst +++ b/docs/examples/real_world_example.rst @@ -94,7 +94,10 @@ Most people don't set SSL on their server while testing and that is fine. You ca 2. Equivalent to above you can set this in Python (if you have problems setting environment variables) -# Somewhere in webapp_example.py, before the app.run for example + +Add this code in webapp_example.py, before the call app.run() + +.. code-block:: python import os os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'