From: Attila-Mihaly Balazs Date: Thu, 14 Apr 2016 12:56:34 +0000 (+0300) Subject: Update GAE example code X-Git-Tag: 2.9~27^2~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F567%2Fhead;p=thirdparty%2Fjinja.git Update GAE example code Update the Google App Engine example code to be compatible with the latest google app engine devserver. --- diff --git a/docs/faq.rst b/docs/faq.rst index 0b0375e1..9dd348f5 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -141,8 +141,8 @@ work in production environments:: import os if os.environ.get('SERVER_SOFTWARE', '').startswith('Dev'): - from google.appengine.tools.dev_appserver import HardenedModulesHook - HardenedModulesHook._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt'] + from google.appengine.tools.devappserver2.python import sandbox + sandbox._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt'] Credit for this snippet goes to `Thomas Johansson `_