sebastian-ardila / 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

Wrong value of appid and have_appserver, #193

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
First,
import appengine_django.db.base
and only then run InstallAppengineHelperForDjango()

And after it, in appengine_django.db.base module appid and have_appserver, has 
wrong values.

I am use svn rev 114.

And path in attachment.

PS
If replace appid and have_appserver with proxy objects, its also fix Issue 175.
Like:

__init__.py
appid = Proxy(default=None)
...
def LoadAppengineEnvironment():
  ...
  appid.set_original_object(APP_ID)

user_code.py
from appengine_django import appid

def some_func():
  print appid # its always works

Original issue reported on code.google.com by minmax777 on 28 May 2011 at 8:54

Attachments:

GoogleCodeExporter commented 9 years ago
Patch looks reasonable thanks, I can't find your email in our list of CLA 
signers. Please read the 'Contributing to the helper' section of 
http://code.google.com/p/google-app-engine-django/source/browse/trunk/README 
and sign the CLA so I can accept the patch.

Thanks.

Original comment by m...@google.com on 20 Aug 2011 at 4:50

GoogleCodeExporter commented 9 years ago
Issue 175 has been merged into this issue.

Original comment by m...@google.com on 20 Aug 2011 at 4:51