#26886: Wrong warnings during template rendering
---------------------------------+--------------------------------------
     Reporter:  None             |                    Owner:  None
         Type:  Bug              |                   Status:  new
    Component:  Template system  |                  Version:  1.9
     Severity:  Normal           |               Resolution:
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by nrogers64):

 * status:  closed => new
 * resolution:  needsinfo =>


Comment:

 I wasn't the one to report this bug, but I ran into the same thing. I made
 a fresh Django 1.10.1 project and added this to settings.py:


 {{{
 LOGGING = {
     'version': 1,
     'disable_existing_loggers': False,
     'handlers': {
         'console': {
             'class': 'logging.StreamHandler',
         },
     },
     'loggers': {
         'django.template': {
             'handlers': ['console'],
             'level': 'DEBUG',
             'propagate': False,
         },
     }
 }
 }}}

 That is the only code I added. I then did the initial migrate and started
 runserver. Then, in another Terminal tab, I ran `curl
 http://localhost:8001/favicon.ico`, which resulted in a "Page not found at
 /favicon.ico", as expected. But this was in the output of runserver:


 {{{
 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 907, in _resolve_lookup
     (bit, current))  # missing attribute
 VariableDoesNotExist: Failed lookup for key [name] in u'<RegexURLResolver
 <RegexURLPattern list> (admin:admin) ^admin/>'
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26886#comment:2>
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/068.5a234b0d28d84d16984194ceecd44452%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to