Re: Django Tutorial Issues

2017-05-04 Thread René Fleschenberg
Hi Ivan, It is very likely that your problem is caused by one of these: - `question` is not assigned to the template context - `question` is assigned to the template context, but it has a wrong value (e.g. `None`) - the question has no `id` (it is not saved to the database yet). This then re

Django Tutorial Issues

2017-05-04 Thread Ivan Cox
Hi i am new to Django and in the process of going through the django tutorial at https://www.djangoproject.com/ I have however run into problems on Part 4. I have added the following code to the detail.html page {{ question.question_text }} {% if error_message %}{{ error_message }}{% endif %}

Tutorial Issues

2012-07-09 Thread Paul Givens
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