Skip to content
Myr

Update GAE example code

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

Update the Google App Engine example code to be compatible with the latest google app engine devserver.

authored by Attila-Mihaly Balazs · committed by Attila-Mihaly Balazs · parent 39bfd79 · 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