#26886: Wrong warnings during template rendering
---------------------------------+------------------------
     Reporter:  liminspace       |      Owner:  liminspace
         Type:  Bug              |     Status:  new
    Component:  Template system  |    Version:  1.9
     Severity:  Normal           |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+------------------------
 There is template:
 {{{
     <div style="{{ style }}"></div>
 }}}
 and code:
 {{{
     render(request, 'template.html', context={'style': "background-image:
 url('image.png');"})
 }}}

 After run it I get some strange console output:

 {{{
     Exception while resolving variable 'name' in template 'unknown'.
     Traceback (most recent call last):
     File ".../.virtualenvs/project/local/lib/python2.7/site-
 packages/django/template/base.py", line 905, in _resolve_lookup
     (bit, current))  # missing attribute
     VariableDoesNotExist: Failed lookup for key [name] in
 u'<RegexURLResolver <RegexURLPattern list> (admin:admin) ^admin/>'
     Exception while resolving variable 'name' in template 'unknown'.
     Traceback (most recent call last):
     File ".../.virtualenvs/project/local/lib/python2.7/site-
 packages/django/template/base.py", line 905, in _resolve_lookup
     (bit, current))  # missing attribute
     VariableDoesNotExist: Failed lookup for key [name] in
 u"<RegexURLResolver <module 'django.contrib.admindocs.urls' from
 '.../.virtualenvs/project/local/lib/python2.7/site-
 packages/django/contrib/admindocs/urls.pyc'> (None:None) ^admin/doc/>"
     ....
     etc.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26886>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.bc88d59b5e8193b94d44f0095b24f659%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to