> 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
> Should be possible. Have you tried something like this?
>
> app1 = web.application(urls, globals())
> session1 = web.session.Session(app1, web.session.DiskStore("sessons1"))
>
> app2 = web.applicaiton(urls2, globals())
> session2 = web.session.Session(app1, web.session.DiskStore("sessons2"))
This way may be a good way, I'll also try this.
--
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.