Filipe,

Filipe Ornelas wrote:
> Hi, I'm following the 
> http://www.turbogears.org/2.0/docs/main/Wiki20/wiki20.html tutorial to 
> learn hot to do a Wiki and also how TG2 Works, but I'm stuck in a 
> problem that is " ImportError: cannot import name DeclarativeBase " 
> (see atached file), I've been doing all the changes that the tutorial 
> says, but when I do " $ paster setup-app development.ini " in the 
> "Initializing the Tables" part it gives me that error (attached file). 
> I went to page.py (also an attached file), and I dont see any mistake? 
> What am I doing wrong? What can I do, to fix it and move on?
I am just starting to look at TG2, so take anything I say with .....

Does your __init__.py file within the model folder have the following line?

DeclarativeBase = declarative_base()

Werner

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to