On Aug 27, 12:27 pm, adam <[email protected]> wrote:
> Hello,
>
> i have added a new controlled to my application. In my root.py file i
> have added
>
> from rubberduckiee.controllers.website import WebsiteController
>
> but when i go tohttp://rubberduckiee.webfactional.com/websitei get
> an error
>
> ImportError: No module named website
>
> What have i missed?
As well as importing the WebsiteController class, you need to create
an instance of it in your RootController class.
For example:
class RootController(BaseController):
# This line will cause requests to "/website" to go
# to the WebsiteController
website = WebsiteController()
Hope that helps,
Simon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---