Hey there, please, if you get errors, post the full stack trace and the source file causing it. I am pretty sure you simply got the import wrong.
you must import the controller from the correct file. say your controller is in /yourproject/controllers/test.py , and its name is TestController (the class name) then you import : from yourproject.controllers.test import TestController that should work. And for learning TG, yea that can be quite a bitch. I recommend going through the entire wiki2 tutorial, and not just reading, but follow it step by step. when you got it done, play around a bit. make own extenstions, start with trivial things like adding pictures in the templates, adding more cols to the database and so on. That should get you started. Greetings, Tom On Fri, Sep 11, 2009 at 2:56 PM, Venkat <[email protected]> wrote: > > Hi all, > I am new to turbogears and this group.Can anyone suggest me > a way to learn turbogears 2.0. I am currently using turbogears > documentation to learn it.Is there any better way to learn other than > that?...In topic SubControllers and the URL Hierarchy there was a code > stating that it would help me in creating a subcontrollers but when i > tried it gave " ImportError: cannot import name Controller" err....Can > anyone help me on that plz...... > > -Venkat > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

