]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Update GAE example code 567/head
authorAttila-Mihaly Balazs <x_at_y_or_z@yahoo.com>
Thu, 14 Apr 2016 12:56:34 +0000 (15:56 +0300)
committerAttila-Mihaly Balazs <x_at_y_or_z@yahoo.com>
Thu, 14 Apr 2016 12:56:34 +0000 (15:56 +0300)
Update the Google App Engine example code to be compatible with the latest google app engine devserver.

docs/faq.rst

index 0b0375e190863d19fcb2fa02c5e070b5c1a3c35c..9dd348f59bcb7d0c1c7454e0f260a72901dd1a45 100644 (file)
@@ -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
 <http://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine/3694434#3694434>`_