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 at http://groups.google.com/group/django-users?hl=en.