For maintainability, I am trying to keep all a-e-p code in a subdirectory
of my GAE app. I named it django-aep and, while the first page view works,
there is an error if I refresh.
What steps will reproduce the problem?
1. Unzip app-engine-patch 1.1RC
2. Rename app-engine-patch-sample to django-whatever
3. Copy django-whatever/app.yaml to ./app.yaml
4. Edit app.yaml and add "django-whatever/" before the static_dir and
script handlers.
5. Run in the SDK: dev_appserver.py .
6. Load http://localhost:8080/
7. Reload page
What is the expected output? What do you see instead?
Should be the same "myapp" example page. But there is an exception. See
the screenshot, but the basic stack trace is:
Caught an exception while rendering: 'RegexURLResolver' object has no
attribute 'name'
Original Traceback (most recent call last):
File
"/tmp/django-whatever/common/zip-packages/django-1.1.zip/django/template/debug.p
y",
line 71, in render_node
File
"/tmp/django-whatever/common/zip-packages/django-1.1.zip/django/template/default
tags.py",
line 370, in render
File
"/tmp/django-whatever/common/zip-packages/django-1.1.zip/django/core/urlresolver
s.py",
line 341, in reverse
File
"/tmp/django-whatever/common/zip-packages/django-1.1.zip/django/core/urlresolver
s.py",
line 275, in reverse
File
"/tmp/django-whatever/common/zip-packages/django-1.1.zip/django/core/urlresolver
s.py",
line 195, in _get_reverse_dict
File
"/tmp/django-whatever/common/zip-packages/django-1.1.zip/django/core/urlresolver
s.py",
line 188, in _populate
AttributeError: 'RegexURLResolver' object has no attribute 'name'
What version of the product are you using? On what operating system?
Ubuntu 9.04, GAE SDK 1.2.4, AEP 1.1RC
Please provide any additional information below.
Note, if you rename the app to 'whatever-django' (and modify app.yaml
accordingly), everything works fine.
Also, I suspect something about loading settings. Under normal conditions,
I intentionally broke the template to compare the environment printouts.
There were two differences in the "Settings" section between the error pages:
1. For "django-whatever" SITE_ID is not defined
2. For "django-whatever" COMBINE_MEDIA['combined-%(LANGUAGE_CODE)s.js']
also includes the repr() representation of a lang_data() and site_data()
function.
Original issue reported on code.google.com by jason.h....@gmail.com on 7 Aug 2009 at 3:35
Original issue reported on code.google.com by
jason.h....@gmail.com
on 7 Aug 2009 at 3:35Attachments: