Hi,
I'm not sure if anyone here uses the "Python Frameworks: Web 2.0
Programming with Django and Turbogears" book, but if so, maybe you can
help.
On page 110, I create a set of pages using tgcrud. I than modify my
root controller.py file to include the new controller called
BlogAuthorController. Then the book claims I can make sure it runs by
doing the following:
python start-tblog.py
However, I end up with the following traceback:
C:\TurboGears\tblog>python start-tblog.py
Traceback (most recent call last):
File "start-tblog.py", line 24, in ?
from tblog.controllers import Root
File "C:\TurboGears\tblog\tblog\controllers.py", line 5, in ?
from BlogAuthorController import BlogAuthorController
File "C:\TurboGears\tblog\tblog\BlogAuthorController\__init__.py",
line 1, in
?
from tblog.BlogAuthorController.controllers import
BlogAuthorController
File "C:\TurboGears\tblog\tblog\BlogAuthorController
\controllers.py", line 6,
in ?
from tblog.model import session, BlogAuthor
ImportError: cannot import name session
If I run the author's code from their site, it works. I tried
comparing the two files using a program called "Beyond Compare" but
cannot find my error. Does anyone have any debugging tips?
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---