On 3/24/06, Mike Kent <[EMAIL PROTECTED]> wrote:
>
> Well, the fun never stops.  I reorganized my code to make my blog have
> its own controller, and mounted that controller in my root controller.
> As soon as I did that, my CSS, javascript, and images stopped working.
>
> Before the change, my CSS was fetched using the path
> '/static/css/default.css'.  After my reorg, it started using the path
> '/blog/static/css/default.css'.  Note that I made no changes to dev.cfg
> or app.cfg.
>
> Can someone explain this to me, and suggest a fix?  There's probably a
> good reason, I'm just caught by surprise.

It sounds like your blog is a RootController when what you want is
just a Controller. (The difference is that a RootController is
considered the root of an application, which is why /static would get
converted to /blog/static.)

Kevin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to