#8725: TemplateSyntaxError at /admin/ with [8760]
---------------------------+------------------------------------------------
Reporter: kmtracey | Owner: nobody
Status: new | Milestone: 1.0
Component: Uncategorized | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
I get !TemplateSyntaxError at /admin/ after updating to current this AM,
isolated to being introduced in [8760]; backing up to [8759] makes it go
away. Full cut-and-paste info:
{{{
Environment:
Request Method: GET
Request URL: http://lbox:8000/admin/
Django Version: 1.0-beta_2-SVN-8760
Python Version: 2.5.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.sites',
'django.contrib.humanize',
'xword.crossword']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')
Template error:
In template
/home/kmt/tmp/django/trunk/django/contrib/admin/templates/admin/base.html,
error at line 25
Caught an exception while rendering:
15 : <!-- Container -->
16 : <div id="container">
17 :
18 : {% if not is_popup %}
19 : <!-- Header -->
20 : <div id="header">
21 : <div id="branding">
22 : {% block branding %}{% endblock %}
23 : </div>
24 : {% if user.is_authenticated and user.is_staff %}
25 : <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if
user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username
}}{% endif %}</strong>. {% block userlinks %} {% url django-admindocs-
docroot as docsroot %} {% if docsroot %}<a href="{{ docsroot }}">{% trans
'Documentation' %}</a> / {% endif %}<a href="{{ root_path
}}password_change/">{% trans 'Change password' %}</a> / <a href="{{
root_path }}logout/">{% trans 'Log out' %}</a>{% endblock %}</div>
26 : {% endif %}
27 : {% block nav-global %}{% endblock %}
28 : </div>
29 : <!-- END Header -->
30 : {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{%
trans 'Home' %}</a>{% if title %} › {{ title|escape }}{% endif
%}</div>{% endblock %}
31 : {% endif %}
32 :
33 : {% if messages %}
34 : <ul class="messagelist">{% for message in messages
%}<li>{{ message|escape }}</li>{% endfor %}</ul>
35 : {% endif %}
Traceback:
File "/home/kmt/tmp/django/trunk/django/core/handlers/base.py" in
get_response
86. response = callback(request, *callback_args,
**callback_kwargs)
File "/home/kmt/tmp/django/trunk/django/contrib/admin/sites.py" in root
160. return self.index(request)
File "/home/kmt/tmp/django/trunk/django/views/decorators/cache.py" in
_wrapped_view_func
44. response = view_func(request, *args, **kwargs)
File "/home/kmt/tmp/django/trunk/django/contrib/admin/sites.py" in index
342. context_instance=template.RequestContext(request)
File "/home/kmt/tmp/django/trunk/django/shortcuts/__init__.py" in
render_to_response
18. return HttpResponse(loader.render_to_string(*args, **kwargs),
**httpresponse_kwargs)
File "/home/kmt/tmp/django/trunk/django/template/loader.py" in
render_to_string
107. return t.render(context_instance)
File "/home/kmt/tmp/django/trunk/django/template/__init__.py" in render
176. return self.nodelist.render(context)
File "/home/kmt/tmp/django/trunk/django/template/__init__.py" in render
756. bits.append(self.render_node(node, context))
File "/home/kmt/tmp/django/trunk/django/template/debug.py" in render_node
71. result = node.render(context)
File "/home/kmt/tmp/django/trunk/django/template/loader_tags.py" in render
97. return compiled_parent.render(context)
File "/home/kmt/tmp/django/trunk/django/template/__init__.py" in render
176. return self.nodelist.render(context)
File "/home/kmt/tmp/django/trunk/django/template/__init__.py" in render
756. bits.append(self.render_node(node, context))
File "/home/kmt/tmp/django/trunk/django/template/debug.py" in render_node
71. result = node.render(context)
File "/home/kmt/tmp/django/trunk/django/template/loader_tags.py" in render
97. return compiled_parent.render(context)
File "/home/kmt/tmp/django/trunk/django/template/__init__.py" in render
176. return self.nodelist.render(context)
File "/home/kmt/tmp/django/trunk/django/template/__init__.py" in render
756. bits.append(self.render_node(node, context))
File "/home/kmt/tmp/django/trunk/django/template/debug.py" in render_node
71. result = node.render(context)
File "/home/kmt/tmp/django/trunk/django/template/defaulttags.py" in render
245. return self.nodelist_true.render(context)
File "/home/kmt/tmp/django/trunk/django/template/__init__.py" in render
756. bits.append(self.render_node(node, context))
File "/home/kmt/tmp/django/trunk/django/template/debug.py" in render_node
71. result = node.render(context)
File "/home/kmt/tmp/django/trunk/django/template/defaulttags.py" in render
255. return self.nodelist_true.render(context)
File "/home/kmt/tmp/django/trunk/django/template/__init__.py" in render
756. bits.append(self.render_node(node, context))
File "/home/kmt/tmp/django/trunk/django/template/debug.py" in render_node
71. result = node.render(context)
File "/home/kmt/tmp/django/trunk/django/template/loader_tags.py" in render
24. result = self.nodelist.render(context)
File "/home/kmt/tmp/django/trunk/django/template/__init__.py" in render
756. bits.append(self.render_node(node, context))
File "/home/kmt/tmp/django/trunk/django/template/debug.py" in render_node
81. raise wrapped
Exception Type: TemplateSyntaxError at /admin/
Exception Value: Caught an exception while rendering:
Original Traceback (most recent call last):
File "/home/kmt/tmp/django/trunk/django/template/debug.py", line 71, in
render_node
result = node.render(context)
File "/home/kmt/tmp/django/trunk/django/template/defaulttags.py", line
373, in render
url = reverse(self.view_name, args=args, kwargs=kwargs)
File "/home/kmt/tmp/django/trunk/django/core/urlresolvers.py", line 250,
in reverse
*args, **kwargs)))
File "/home/kmt/tmp/django/trunk/django/core/urlresolvers.py", line 226,
in reverse
possibilities, pattern = self.reverse_dict.get(lookup_view, [(), ()])
File "/home/kmt/tmp/django/trunk/django/core/urlresolvers.py", line 159,
in _get_reverse_dict
parent = normalize(pattern.regex.pattern)
File "/home/kmt/tmp/django/trunk/django/utils/regex_helper.py", line 77,
in normalize
ch, escaped = pattern_iter.next()
StopIteration
}}}
There's nothing particularly fancy about my admin setup (no over-ridden
templates or anything, so far as I recall). My own views work fine, so
far as I've checked. If this is not generally recreatable let me know
what info would be most helpful to track it down.
--
Ticket URL: <http://code.djangoproject.com/ticket/8725>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---