Monday, January 21, 2013

Django Tutorial on Hostgator part 3

It has taken me a little longer to get back to this than I wanted. I was able to complete part 3 of the official django tutorial with only one slight problem. I was getting an error of NoReverseMatch at /polls/

So it was easily fixed with adding this line to the top of my index.html file:

{% load url from future %}

When I was looking back at this solution for the blog post I noticed another peculiar thing.  I have been working off from two different tutorials on the official django site.  DOH!!!!!  In one blog post I was looking at /dev/intro and the other was 1.4/intro.  I should have been paying more attention.  I believe I should have been using the 1.4 version all along.  To be sure I open python and type:

import django
django.VERSION



As suspected, I should have been using the 1.4 documentation.  Everything I did the last few days worked except for the NoReverseMatch error I received which was easily fixed.  No harm done, this time.


No comments:

Post a Comment