I am new to django and was running throught the tutorial when I ran into a 
problem in part 3.  In the template loading section I was given an error 
after I set the template to the correct path:   
KeyError at /polls/

user

Request Method:GETRequest URL:http://127.0.0.1:8000/polls/Django 
Version:1.4Exception 
Type:KeyErrorException Value:

user

Exception Location:C:\Program Files\BitNami 
DjangoStack\apps\django\django\template\context.py in __getitem__, line 
54Python 
Executable:C:\Program Files\BitNami DjangoStack\python\python.exePython 
Version:2.6.2
Error during template rendering

In template C:\Practice\mysite\OtherTemp\polls\index.html, error at line *67
*

*
*

57{% endif %} 58</div> 59{% endblock %} 60 61{% block sidebar %} 62<div 
id="content-related"> 63 <div class="module" id="recent-actions-module"> 
64<h2>{% trans 'Recent Actions' %}</h2> 
65 <h3>{% trans 'My Actions' %}</h3> 66 {% load log %} 67 {% get_admin_log 
10 as admin_log for_user user %} 68 {% if not admin_log %} 69 <p>{% trans 
'None available' %}</p> 70 {% else %} 71 <ul class="actionlist"> 72 {% for 
entry in admin_log %} 73 <li class="{% if entry.is_addition %}addlink{% 
endif %}{% if entry.is_change %}changelink{% endif %}{% if 
entry.is_deletion %}deletelink{% endif %}"> 74 {% if entry.is_deletion or 
not entry.get_admin_url %} 75 {{ entry.object_repr }} 76 {% else %} 77 <a 
href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/4M9HHjObhC4J.
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.

Reply via email to