Change the link to <link rel="stylesheet" type="text/css"
href="/static/css/blah.css" /> and it should work.
Michele: That's right, that's the preferred way to do it. (preferred
in that it makes it easier to update foo-start.py to a newer version
from tg later on)
On 12/10/05, Facun Chamut <[EMAIL PROTECTED]> wrote:
> Here, try it:
>
> BLAH.CSS
> body {font-size:20px;}
>
> START.PY
> from FOO.PY import *
> cherrypy.root=Root()
> cherrypy.root.blah=blah()
> cherrypy.root.blah.bleh = bleh()
>
> WELCOME.KID
> <link rel="stylesheet" type="text/css" href="../static/css/blah.css" />
>
> FOO.PY
> class Root(controllers.RootController):
> @turbogears.expose(template="dev10.templates.welcome")
> def index(self):
> return dict(now='blah')
> class blah(controllers.RootController ):
> @turbogears.expose(template="dev10.templates.welcome")
> def index(self):
> return dict(now='blah')
> class bleh(controllers.RootController):
> @turbogears.expose(template="dev10.templates.welcome")
> def index(self):
> return dict(now='blah')
>
>
> On 12/10/05, Karl Guertin <[EMAIL PROTECTED]> wrote:
> >
> > On 12/10/05, Facun Chamut <[EMAIL PROTECTED]> wrote:
> > > if w/ relative/absolute you mean whether it finishes w/ a */*, then it
> > > doesn't matter (in this particular case. It sometimes does). Please see
> my
> > > example.
> >
> > I mean is your css file written as:
> > <link rel="stylesheet" type="text/css" href="/path/to/css"/> <!--
> absolute! -->
> > <link rel="stylesheet" type="text/css" href="path/to/css"/> <!--
> relative! -->
> >
> > but blah/ and blah/bleh should refer to the same relative path, so
> > that must not be it. What does your server log say when you try to hit
> > blah/bleh with a browser?
> >
>
>
--
cheers
elvelind grandin