FerHarris / google-app-engine-samples

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

Django-sample only works locally. #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download django-sample
2. change the project name
3. Upload

What is the expected output? What do you see instead?
Attribute Error: 'module' object has no attribute 'ROOT_URLCONF'

What version of the product are you using? On what operating system?
20080409, OS 10.5.2

Please provide any additional information below.

See discussion at
http://groups.google.com/group/google-appengine/browse_thread/thread/5caca976275
67de9/ebf942706be57d2a?lnk=gst&q=sample#ebf942706be57d2a
for more info.

Original issue reported on code.google.com by Nathanae...@gmail.com on 3 Jul 2008 at 1:52

GoogleCodeExporter commented 8 years ago
Any news? 

Original comment by Nathanae...@gmail.com on 7 Jul 2008 at 5:27

GoogleCodeExporter commented 8 years ago
I had this problem and found the answer here:
http://code.google.com/appengine/kb/commontasks.html#root_urlconf

Original comment by jmarst...@gmail.com on 12 Jul 2008 at 4:43

GoogleCodeExporter commented 8 years ago
I had the same issue as Nathanael, and I followed the suggestion by jmasters.

I basically added the following 2 lines:
from django.conf import settings
settings._target = None

In the file django_bootstrap.py right before the definition of the main() 
function.

I reuploaded the app, and all it worked fine.

Original comment by christia...@gmail.com on 3 May 2009 at 7:00