sijeesh / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

Since GAE1.6 - ValueError: too many values to unpack in LoadAppengineEnvironment #202

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. manage.py runserver

With the release 1.6 of GAE, the method LoadAppConfig from 
google.appengine.tool.dev_server has been changed. Now it returns a tuple of 3 
variables: (AppInfoExternal, URLMatcher, from_cache).

I purpose this diff:

--- a/__init__.py
+++ b/__init__.py
@@ -209,7 +209,7 @@ def LoadAppengineEnvironment():
     # Running as manage.py script, read from config file.
     try:
       from google.appengine.tools import dev_appserver
-      appconfig, unused_matcher = dev_appserver.LoadAppConfig(PARENT_DIR, {})
+      appconfig, unused_matcher, from_cache = 
dev_appserver.LoadAppConfig(PARENT_DIR, {})
       appid = appconfig.application
     except (ImportError, yaml_errors.EventListenerYAMLError), e:
       logging.warn("Could not read the Application ID from app.yaml. "

Original issue reported on code.google.com by sahid.fe...@gmail.com on 8 Nov 2011 at 11:04

GoogleCodeExporter commented 8 years ago
thank you ~~

Original comment by free2312...@gmail.com on 17 Nov 2011 at 12:36

GoogleCodeExporter commented 8 years ago
Thank you very much

Original comment by ywang.u...@gmail.com on 5 Mar 2012 at 1:17

GoogleCodeExporter commented 8 years ago
could you post the hole __init__.py file please .

Original comment by redate...@gmail.com on 25 Apr 2012 at 3:24

GoogleCodeExporter commented 8 years ago
Thank you so much!

Original comment by giakhanh...@gmail.com on 15 Jul 2012 at 11:11

GoogleCodeExporter commented 8 years ago
Thanks for the diff

Original comment by prl...@gmail.com on 22 Sep 2012 at 8:10