Loading

Paste #pygbqjxlz

  1. Environment:
  2.  
  3.  
  4. Request Method: GET
  5. Request URL: http://127.0.0.1:8000/
  6.  
  7. Django Version: 1.8.7
  8. Python Version: 2.7.10
  9. Installed Applications:
  10. ('django.contrib.auth',
  11.  'django.contrib.contenttypes',
  12.  'django.contrib.sessions',
  13.  'django.contrib.sites',
  14.  'django.contrib.admin',
  15.  'django.contrib.humanize',
  16.  'django.contrib.messages',
  17.  'django.contrib.staticfiles',
  18.  'common',
  19.  'languages',
  20.  'people',
  21.  'stats',
  22.  'teams',
  23.  'vertimus',
  24.  'feeds')
  25. Installed Middleware:
  26. ('django.contrib.sessions.middleware.SessionMiddleware',
  27.  'django.middleware.locale.LocaleMiddleware',
  28.  'django.middleware.common.CommonMiddleware',
  29.  'django.middleware.csrf.CsrfViewMiddleware',
  30.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  31.  'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  32.  'django.contrib.messages.middleware.MessageMiddleware',
  33.  'django.middleware.clickjacking.XFrameOptionsMiddleware')
  34.  
  35.  
  36. Template error:
  37. In template /home/thanos/devel/damned-lies/templates/login/login_usermenu.html, error at line 6
  38.    'str' object has no attribute 'use_gravatar'
  39.  
  40.    1 : {% load i18n people %}
  41.    2 :
  42.    3 : {% if user.is_authenticated %}
  43.    4 :  <div class="user_settings user_popup">
  44.    5 :          <a class="avatar" href="{% url 'person_detail_username' user.username %}" title="Profile">
  45.    6 :           {{ person|people_image }}
  46.    7 :          </a>
  47.    8 :      <ul>
  48.    9 :          <li><a class="text" href="{% url 'person_detail_username' user.username %}">{% trans 'User Settings' %}</a></li>
  49.    10 :         </ul>
  50.    11 :    
  51.    12 :         <form action="{% url 'login' %}" method="post" class="login_popup_form">
  52.    13 :             {% csrf_token %}
  53.    14 :             <input type="hidden" name="logout" value="1">
  54.    15 :             <input type="submit" value="{% trans 'Log out' %}">
  55.    16 :         </form>
  56.  
  57.  
  58. Traceback:
  59. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  60.   132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  61. File "/home/thanos/devel/damned-lies/common/views.py" in index
  62.   42.     return render(request, 'index.html', context)
  63. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/shortcuts.py" in render
  64.   67.             template_name, context, request=request, using=using)
  65. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
  66.   99.         return template.render(context, request)
  67. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/backends/django.py" in render
  68.   74.         return self.template.render(context)
  69. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in render
  70.   210.                     return self._render(context)
  71. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in _render
  72.   202.         return self.nodelist.render(context)
  73. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in render
  74.   905.                 bit = self.render_node(node, context)
  75. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/debug.py" in render_node
  76.   79.             return node.render(context)
  77. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  78.   135.         return compiled_parent._render(context)
  79. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in _render
  80.   202.         return self.nodelist.render(context)
  81. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in render
  82.   905.                 bit = self.render_node(node, context)
  83. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/debug.py" in render_node
  84.   79.             return node.render(context)
  85. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  86.   159.                 return template.render(context)
  87. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in render
  88.   212.                 return self._render(context)
  89. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in _render
  90.   202.         return self.nodelist.render(context)
  91. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in render
  92.   905.                 bit = self.render_node(node, context)
  93. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/debug.py" in render_node
  94.   79.             return node.render(context)
  95. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  96.   329.                 return nodelist.render(context)
  97. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in render
  98.   905.                 bit = self.render_node(node, context)
  99. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/debug.py" in render_node
  100.   79.             return node.render(context)
  101. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/debug.py" in render
  102.   89.             output = self.filter_expression.resolve(context)
  103. File "/home/thanos/.virtualenvs/damnedlies/lib/python2.7/site-packages/django/template/base.py" in resolve
  104.   675.                 new_obj = func(obj, *arg_vals)
  105. File "/home/thanos/devel/damned-lies/people/templatetags/people.py" in people_image
  106.   29.     if person.use_gravatar:
  107.  
  108. Exception Type: AttributeError at /
  109. Exception Value: 'str' object has no attribute 'use_gravatar'