Re: Strange error while trying to access admin: rendering fails (latest SVN)
Thanks Karen you've been helping me out recently with debugging a few things and have been a really great asset. Cheers, Ryan Kaskel On Aug 26, 7:19 pm, Karen Traceywrote: > On Wed, Aug 26, 2009 at 3:33 PM, Ryan K wrote: > > > This is where it says the problem is in the template: > > > Template error > > > In template /usr/local/lib/python2.6/dist-packages/django/contrib/ > > admin/templates/admin/base.html, error at line 30 > > Caught an exception while rendering: unsupported operand type(s) for > > +=: 'function' and 'list' > > 20 > > 21 > > 22 > > 23 {% block branding %}{% endblock %} > > 24 > > 25 {% if user.is_authenticated and user.is_staff %} > > 26 > > 27 {% trans 'Welcome,' %} > > 28 {% firstof user.first_name user.username %}. > > 29 {% block userlinks %} > > 30 {% url django-admindocs-docroot as docsroot %} <- ERROR HERE > > Double check your url patterns. The {% url %} tag causes your entire url > configuration to get processed, and any errors will get reported as being > due to the {% url %} tag, even though that specific tag is blameless. The > problem is likely in something you recently added/changed in your url > configuration. > > Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Strange error while trying to access admin: rendering fails (latest SVN)
On Wed, Aug 26, 2009 at 3:33 PM, Ryan Kwrote: > > This is where it says the problem is in the template: > > Template error > > In template /usr/local/lib/python2.6/dist-packages/django/contrib/ > admin/templates/admin/base.html, error at line 30 > Caught an exception while rendering: unsupported operand type(s) for > +=: 'function' and 'list' > 20 > 21 > 22 > 23 {% block branding %}{% endblock %} > 24 > 25 {% if user.is_authenticated and user.is_staff %} > 26 > 27 {% trans 'Welcome,' %} > 28 {% firstof user.first_name user.username %}. > 29 {% block userlinks %} > 30 {% url django-admindocs-docroot as docsroot %} <- ERROR HERE > Double check your url patterns. The {% url %} tag causes your entire url configuration to get processed, and any errors will get reported as being due to the {% url %} tag, even though that specific tag is blameless. The problem is likely in something you recently added/changed in your url configuration. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Strange error while trying to access admin: rendering fails (latest SVN)
State in admin rendering process when error occurred: /usr/local/lib/python2.6/dist-packages/django/template/debug.py in render_node 74. e.source = node.source 75. raise 76. except Exception, e: 77. from sys import exc_info 78. wrapped = TemplateSyntaxError(u'Caught an exception while rendering: %s' % force_unicode(e, errors='replace')) 79. wrapped.source = node.source 80. wrapped.exc_info = exc_info() 81. raise wrapped ... 82. return result 83. 84. class DebugVariableNode(VariableNode): 85. def render(self, context): 86. try: 87. output = force_unicode(self.filter_expression.resolve(context)) ▼ Local vars VariableValue context [{'block': , , , , , , , , , , / '>, , , , , , '>]>}, {'root_path': None, 'app_list': [{'app_url': 'auth/', 'models': [{'perms': {'add': True, 'change': True, 'delete': True}, 'admin_url': 'auth/group/', 'name': }, {'perms': {'add': True, 'change': True, 'delete': True}, 'admin_url': 'auth/ user/', 'name': }], 'has_module_perms': True, 'name': 'Auth'}, {'app_url': 'sites/', 'models': [{'perms': {'add': True, 'change': True, 'delete': True}, 'admin_url': 'sites/site/', 'name': }], 'has_module_perms': True, 'name': 'Sites'}, {'app_url': 'staticpages/', 'models': [{'perms': {'add': True, 'change': True, 'delete': True}, 'admin_url': 'staticpages/link/', 'name': u'Links'}, {'perms': {'add': True, 'change': True, 'delete': True}, 'admin_url': 'staticpages/menu/', 'name': u'Menus'}, {'perms': {'add': True, 'change': True, 'delete': True}, 'admin_url': 'staticpages/ staticpage/', 'name': u'Static pages'}], 'has_module_perms': True, 'name': 'Staticpages'}], 'title': u'Site administration'}, {'MEDIA_URL': 'http://localhost/static/sccom'}, {'perms': , 'messages': [], 'user': }, {}] e TypeError("unsupported operand type(s) for +=: 'function' and 'list'",) exc_info node self [, , , , , , , , , , / '>, , , , , , '>] wrapped TemplateSyntaxError(u"Caught an exception while rendering: unsupported operand type(s) for +=: 'function' and 'list'",) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Strange error while trying to access admin: rendering fails (latest SVN)
This is where it says the problem is in the template: Template error In template /usr/local/lib/python2.6/dist-packages/django/contrib/ admin/templates/admin/base.html, error at line 30 Caught an exception while rendering: unsupported operand type(s) for +=: 'function' and 'list' 20 21 22 23 {% block branding %}{% endblock %} 24 25 {% if user.is_authenticated and user.is_staff %} 26 27 {% trans 'Welcome,' %} 28 {% firstof user.first_name user.username %}. 29 {% block userlinks %} 30 {% url django-admindocs-docroot as docsroot %} <- ERROR HERE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Strange error while trying to access admin: rendering fails (latest SVN)
I am getting a very strange error and I can't tell if it is coming from my code or Django's code. I have not modified the templates of the admin interface at all. Below is the error. I am trying to access http://localhost:8080/. This error still occurrs if I remove all apps from the install apps list and only leave contrib apps. TemplateSyntaxError at /admin/ Caught an exception while rendering: unsupported operand type(s) for +=: 'function' and 'list' Request Method: GET Request URL:http://localhost:8000/admin/ Exception Type: TemplateSyntaxError Exception Value: Caught an exception while rendering: unsupported operand type(s) for +=: 'function' and 'list' Exception Location: /usr/local/lib/python2.6/dist-packages/django/ template/debug.py in render_node, line 81 Python Executable: /usr/bin/python Python Version: 2.6.2 - Cheers, Ryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---