You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Template error:
In template /Users/dlw/Documents/DLW/Django/blogDemo/sblog/templates/sblog/blog_show.html, error at line 46
'RequestContext' object has no attribute 'META' 36 :
{% load threadedcomments_tags %}
37 : {% get_comment_count for blog as comment_count %}
38 : <a href="#cmt" title="comment"><i class="icon-comment offset1"></i>{{ comment_count }} </a>
39 : </div>
40 : </div>
41 : </section>
42 : </article>
43 : </div>
44 : {% block mycomments %}
45 : <h2>Comments for {{ blog }}</h2>
46 : {% render_comment_list for blog %} ##Here is the error
47 : {% render_comment_form for blog %}
48 : {% endblock %}
49 : {% endblock %}
50 :
Traceback:
File "/Library/Python/2.7/site-packages/django/core/handlers/exception.py" in inner
response = get_response(request)
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in _get_response
Environment:
Request Method: GET
Request URL: http://localhost:8000/sblog/blog/3/
Django Version: 1.10.1
Python Version: 2.7.10
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'sblog',
'threadedcomments',
'django.contrib.sites',
'django_comments']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Template error:
In template /Users/dlw/Documents/DLW/Django/blogDemo/sblog/templates/sblog/blog_show.html, error at line 46
'RequestContext' object has no attribute 'META' 36 :
Traceback:
File "/Library/Python/2.7/site-packages/django/core/handlers/exception.py" in inner
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in _get_response
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in _get_response
File "/Users/dlw/Documents/DLW/Django/blogDemo/sblog/views.py" in blog_show
File "/Library/Python/2.7/site-packages/django/shortcuts.py" in render
File "/Library/Python/2.7/site-packages/django/template/loader.py" in render_to_string
File "/Library/Python/2.7/site-packages/django/template/backends/django.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in _render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render_annotated
File "/Library/Python/2.7/site-packages/django/template/loader_tags.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in _render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render_annotated
File "/Library/Python/2.7/site-packages/django/template/loader_tags.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in _render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render_annotated
File "/Library/Python/2.7/site-packages/django/template/loader_tags.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render_annotated
File "/Library/Python/2.7/site-packages/django/template/loader_tags.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render_annotated
File "/Library/Python/2.7/site-packages/django/template/loader_tags.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render_annotated
File "/Library/Python/2.7/site-packages/django/template/loader_tags.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render_annotated
File "/Library/Python/2.7/site-packages/threadedcomments/templatetags/threadedcomments_tags.py" in render
File "/Library/Python/2.7/site-packages/django/template/loader.py" in render_to_string
File "/Library/Python/2.7/site-packages/django/template/backends/django.py" in render
File "/Library/Python/2.7/site-packages/django/template/base.py" in render
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py" in enter
File "/Library/Python/2.7/site-packages/django/template/context.py" in bind_template
File "/Library/Python/2.7/site-packages/django/template/context_processors.py" in debug
Exception Type: AttributeError at /sblog/blog/3/
Exception Value: 'RequestContext' object has no attribute 'META
The text was updated successfully, but these errors were encountered: