Skip to content
Myr

Merge pull request #567 from gpanther/update-gae-example-in-faq

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update GAE example code

authored by Jeff Widman · committed by Jeff Widman · parents 39bfd79, e2eab55 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/faq.rst+2 added-2 removed
139 unmodified lines
140work in production environments::141142 import os143 if os.environ.get('SERVER_SOFTWARE', '').startswith('Dev'):144 from google.appengine.tools.dev_appserver import HardenedModulesHook145 HardenedModulesHook._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt']144 from google.appengine.tools.devappserver2.python import sandbox145 sandbox._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt']146147Credit for this snippet goes to `Thomas Johansson148<http://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine/3694434#3694434>`_149
42 unmodified lines