Re: Following Django Book, get NameError when accessing certain page

2010-05-04 Thread Karen Tracey
On Sun, May 2, 2010 at 11:16 PM, kelp wrote: > Yes, I did that, but for some reason, it is still not working, here's > the contents of my views.py: > from django.http import HttpResponse > from django.shortcuts import render_to_response > import datetime > > def hello(request): >return HttpRe

Re: Following Django Book, get NameError when accessing certain page

2010-05-02 Thread kelp
Yes, I did that, but for some reason, it is still not working, here's the contents of my views.py: from django.http import HttpResponse from django.shortcuts import render_to_response import datetime def hello(request): return HttpResponse("Hello world") def search_form(request): return r

Re: Following Django Book, get NameError when accessing certain page

2010-05-02 Thread Karen Tracey
On Sun, May 2, 2010 at 10:17 PM, kelp wrote: > Hello, > Thanks! That fixed the problem, but now I am getting another one. I am > getting an AttributeError now: > http://dpaste.com/190232/ > > Before the url pattern that references views.search_form, the book mentions adding: from django.shortcut

Re: Following Django Book, get NameError when accessing certain page

2010-05-02 Thread kelp
Hello, Thanks! That fixed the problem, but now I am getting another one. I am getting an AttributeError now: http://dpaste.com/190232/ This shows up even when I access localhost:8000/hello/ or basically anything I have set up in urls.py On May 2, 6:49 pm, Karen Tracey wrote: > On Sun, May 2, 201

Re: Following Django Book, get NameError when accessing certain page

2010-05-02 Thread Karen Tracey
On Sun, May 2, 2010 at 8:41 PM, kelp wrote: > Hello, I am trying to learn Django through the documentation: > http://www.djangobook.com/en/2.0/chapter07/ > > I am having a view issue, though. When I try to access > http://127.0.0.1:8000/search-form/ after running my server, I get the > following