{"action":"opened","issue":{"url":"https://api.github.com/repos/django/djangosnippets.org/issues/52","repository_url":"https://api.github.com/repos/django/djangosnippets.org","labels_url":"https://api.github.com/repos/django/djangosnippets.org/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/django/djangosnippets.org/issues/52/comments","events_url":"https://api.github.com/repos/django/djangosnippets.org/issues/52/events","html_url":"https://github.com/django/djangosnippets.org/issues/52","id":185634118,"number":52,"title":"AttributeError at /","user":{"login":"raghuraju","id":932416,"avatar_url":"https://avatars.githubusercontent.com/u/932416?v=3","gravatar_id":"","url":"https://api.github.com/users/raghuraju","html_url":"https://github.com/raghuraju","followers_url":"https://api.github.com/users/raghuraju/followers","following_url":"https://api.github.com/users/raghuraju/following{/other_user}","gists_url":"https://api.github.com/users/raghuraju/gists{/gist_id}","starred_url":"https://api.github.com/users/raghuraju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghuraju/subscriptions","organizations_url":"https://api.github.com/users/raghuraju/orgs","repos_url":"https://api.github.com/users/raghuraju/repos","events_url":"https://api.github.com/users/raghuraju/events{/privacy}","received_events_url":"https://api.github.com/users/raghuraju/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T10:46:35Z","updated_at":"2016-10-27T10:46:35Z","closed_at":null,"body":"Commit ID: b3b07f31130877c488126dca4c62495d15c3ef4f\r\n\r\nDjangosnippets is giving Attribute error when trying to access at port 8000 after following all the instructions in the Readme.\r\n\r\nFull trace is listed here\r\n```\r\nEnvironment:\r\n\r\n\r\nRequest Method: GET\r\nRequest URL: http://localhost:8000/\r\n\r\nDjango Version: 1.8.15\r\nPython Version: 2.7.6\r\nInstalled Applications:\r\n('django.contrib.auth',\r\n 'django.contrib.admin',\r\n 'django_comments',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.flatpages',\r\n 'django.contrib.messages',\r\n 'django.contrib.sessions',\r\n 'django.contrib.staticfiles',\r\n 'django.contrib.sites',\r\n 'allauth',\r\n 'allauth.account',\r\n 'allauth.socialaccount',\r\n 'allauth.socialaccount.providers.bitbucket',\r\n 'allauth.socialaccount.providers.github',\r\n 'allauth.socialaccount.providers.twitter',\r\n 'cab',\r\n 'comments_spamfighter',\r\n 'haystack',\r\n 'pagination',\r\n 'ratings',\r\n 'taggit',\r\n 'captcha')\r\nInstalled Middleware:\r\n('django.middleware.security.SecurityMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',\r\n 'pagination.middleware.PaginationMiddleware',\r\n 'ratelimitbackend.middleware.RateLimitMiddleware',\r\n 'django.contrib.auth.middleware.SessionAuthenticationMiddleware')\r\n\r\n\r\nTemplate error:\r\nIn template /opt/djangosnippets.org/djangosnippets/templates/homepage.html, error at line 14\r\n   'SafeText' object has no attribute '_default_manager'\r\n\r\n   4 : {% block bodyclass %}frontpage{% endblock %}\r\n\r\n\r\n\r\n   5 : {% block head_title %}Welcome{% endblock %}\r\n\r\n\r\n\r\n   6 : \r\n\r\n\r\n\r\n   7 : {% block content_header %}Welcome{% endblock %}\r\n\r\n\r\n\r\n   8 : \r\n\r\n\r\n\r\n   9 : {% block sidebar %}\r\n\r\n\r\n\r\n   10 :   {% load cache %}\r\n\r\n\r\n\r\n   11 :   {% cache 600 homepage %}\r\n\r\n\r\n\r\n   12 :   <h2>Latest snippets posted:</h2>\r\n\r\n\r\n\r\n   13 :   <ul>\r\n\r\n\r\n\r\n   14 :    {% for snippet in \"cab.snippet\"|latest:5 %} \r\n\r\n\r\n\r\n   15 :     <li><a href=\"{{ snippet.get_absolute_url }}\">{{ snippet.title }}</a> (<a href=\"{{ snippet.language.get_absolute_url }}\">{{ snippet.language.name }}</a>) by <a href=\"{{ snippet.author.get_absolute_url }}\">{{ snippet.author.username }}</a> {{ snippet.pub_date|timesince }} ago</li>\r\n\r\n\r\n\r\n   16 :   {% endfor %}\r\n\r\n\r\n\r\n   17 :   </ul>\r\n\r\n\r\n\r\n   18 : \r\n\r\n\r\n\r\n   19 :   <h2>Top-rated snippets:</h2>\r\n\r\n\r\n\r\n   20 :   <ol>\r\n\r\n\r\n\r\n   21 :   {% for snippet in \"cab.snippet\"|call_manager:\"top_rated\"|slice:\":5\" %}\r\n\r\n\r\n\r\n   22 :     <li><a href=\"{{ snippet.get_absolute_url }}\">{{ snippet.title }}</a> (<a href=\"{{ snippet.language.get_absolute_url }}\">{{ snippet.language.name }}</a>) by <a href=\"{{ snippet.author.get_absolute_url }}\">{{ snippet.author.username }}</a></li>\r\n\r\n\r\n\r\n   23 :   {% endfor %}\r\n\r\n\r\n\r\n   24 :   </ol>\r\n\r\n\r\nTraceback:\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/core/handlers/base.py\" in get_response\r\n  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\nFile \"/opt/djangosnippets.org/djangosnippets/urls.py\" in <lambda>\r\n  19.     url(r'^$', lambda request: render(request, 'homepage.html'), name='home'),\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/shortcuts.py\" in render\r\n  67.             template_name, context, request=request, using=using)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/loader.py\" in render_to_string\r\n  99.         return template.render(context, request)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/backends/django.py\" in render\r\n  74.         return self.template.render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  210.                     return self._render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/base.py\" in _render\r\n  202.         return self.nodelist.render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  905.                 bit = self.render_node(node, context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/debug.py\" in render_node\r\n  79.             return node.render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/loader_tags.py\" in render\r\n  135.         return compiled_parent._render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/base.py\" in _render\r\n  202.         return self.nodelist.render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  905.                 bit = self.render_node(node, context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/debug.py\" in render_node\r\n  79.             return node.render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/loader_tags.py\" in render\r\n  65.                 result = block.nodelist.render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  905.                 bit = self.render_node(node, context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/debug.py\" in render_node\r\n  79.             return node.render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/templatetags/cache.py\" in render\r\n  48.             value = self.nodelist.render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/base.py\" in render\r\n  905.                 bit = self.render_node(node, context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/debug.py\" in render_node\r\n  79.             return node.render(context)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/defaulttags.py\" in render\r\n  155.                 values = self.sequence.resolve(context, True)\r\nFile \"/opt/virts/snippets/local/lib/python2.7/site-packages/django/template/base.py\" in resolve\r\n  675.                 new_obj = func(obj, *arg_vals)\r\nFile \"/opt/djangosnippets.org/cab/templatetags/core_tags.py\" in latest\r\n  20.         manager = model_or_obj._default_manager\r\n\r\nException Type: AttributeError at /\r\nException Value: 'SafeText' object has no attribute '_default_manager'\r\n\r\n```"}}
{"actor":{"display_login":"raghuraju"}}