On Tue, Jan 5, 2010 at 7:13 AM, David Shieh <[email protected]> wrote: > >> Why can't you do "from app import session" in views.py? > When I use this, I've got an error, and here's the error: > Traceback (most recent call last): > File "davidblog.py", line 5, in <module> > import views > File "/home/icefox/projects/davidblog/views.py", line 4, in <module> > from davidblog import session > File "/home/icefox/projects/davidblog/davidblog.py", line 6, in > <module> > from views import my_loadhook > ImportError: cannot import name my_loadhook
Then your problem is with having interdependent modules. Why do you need my_loadhook in davidblog.py? to add it to the app? you can do that in views.py? -- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
