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 <kmtra...@gmail.com> wrote: > On Sun, May 2, 2010 at 8:41 PM, kelp <kelp...@gmail.com> 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 error: > >http://dpaste.com/190212/ > > > Here is what I have in my urls.py: > > (r'^search-form/$', views.search_form), > > > Any ideas of what I need to do to fix this problem? > > You need to include: > > from mysite.books import views > > before attempting to reference views.search_form. (This import is included > in the book example code on the page you reference right above the first > mention of views.search_form.) > > Karen > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.