singh91digvijay / google-app-engine-samples

Automatically exported from code.google.com/p/google-app-engine-samples
0 stars 0 forks source link

app works on dev_appserver but not on appspot.com #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download source
2. edit app.yaml with your project name
3. upload your app and try to run it

What is the expected output? What do you see instead?
500 ERROR on appname.appspot.com. All works fine on localhost:8080

The logs on appengine start with

{{{
<type 'exceptions.AttributeError'>: 'module' object has no attribute
'ROOT_URLCONF'

}}}

also discussed on
http://groups.google.com/group/google-appengine/browse_thread/thread/8ee67a72182
9d372/bd90d7a847f9b6b2?#bd90d7a847f9b6b2

Please provide any additional information below.
This error is fixed by inserting the lines

{{{
# Force Django to reload its settings.
from django.conf import settings
settings._target = None
}}}

after
{{{
# Google App Hosting imports.
from google.appengine.ext.webapp import util
}}}

in django_bootstrap.py

also ref: http://code.google.com/intl/fr/appengine/articles/django.html

REQUEST: Dev team, please update django_bootstrap.py with the above 3
lines. Will greatly help new developers.

Original issue reported on code.google.com by animesh on 15 May 2009 at 2:42

GoogleCodeExporter commented 8 years ago
Please mark as duplicate of issue 7.

Original comment by animesh on 15 May 2009 at 2:51