That's right, you need to import your model into the websetup.py file:

from simplesite import model


On Oct 14, 4:58 pm, Steven <[EMAIL PROTECTED]> wrote:
> I'm a newbie as well (working through the pylonsbook.com) in my
> SimpleSite/simplesite/websetup.py I have this line at the top of the
> file which defines "model".
>
> from simplesite import model
>
> I think adding it to your websetup.py might do the trick.
>
> Steven
>
> On Oct 9, 11:05 am, dw <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to integrate authkit into my app and I'm going through the
> > book online.  I'm using pylons 0.9.7 to match the book and my model is
> > set up in the same manner as the simple site tutorial.  When I run the
> > setup-app to set up the user tables I get the following error:
> > File "XXX/websetup.py", line 25, in setup_app
> >     users = UsersFromDatabase(model)
> > NameError: global name 'model' is not defined
>
> > I've been trying to trace this error but can't seem to figure it out.
> > This is my first real pylons app so I'm sure I'm missing something
> > here.  Any help would be greatly appreciated.  Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to