On Mar 12, 12:00 am, Karen Tracey <kmtra...@gmail.com> wrote:
> On Wed, Mar 11, 2009 at 8:37 PM, John Maines <jmai...@bellsouth.net> wrote:
> > We are making our way through the Django book, web version, for 1.0.
> > We hit a road block at chapter 7, Forms.
>
> > In the part subtitled "A Simple Form Handling Example", there are some
> > very basic instruction on building a form that include making a view,
> > adding some code to urls.py, and creating an html page.
>
> > No matter what we try, We usually get a message:
>
> > NameError: name 'views' is not defined
>
> > Anyone encounter that and/or know the solution?
>
> (Note that book is a work in progress so there may be some rough edges in
> it.)  The urls.py shown in that example seems to be missing an "import
> views" line before the "urlpatterns =..." line that references
> views.search.  Add it and that should fix the NameError.  (Also, note the
> example seems to switch mid-example from a view named search_form to search,
> so be careful to consistently use whichever of the names you choose to use
> for the example.)
>
> Karen


Thanks. I figured that out late last night ... and import views
worked. Rough edges, definitely. I sort of wish we had started
learning Django with version 0.96 ... problems like this can bring our
learning process to a dead halt for hours and hours.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to