The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
edgarsmolow <edgarsmo... @gmail.com>
Date: Tue, 24 Mar 2009 11:45:15 -0700 (PDT)
Local: Tues, Mar 24 2009 2:45 pm
Subject: CSS not used
CSS is used with URL:
http://localhost/logic/q01
The page is rendered as expected, with CSS. But, when the following
URL is invoked, the page is not rendered with CSS for some reason:
http://localhost/logic/q01/ABCDADF84093840384
If I understand Routes, "logic" is mapped as the controller and "q01"
as the action. In the second URL, "ABCDADF84093840384" is mapped as
the id. Why is the page NOT rendered with CSS if the id is appended
to the URL? Here's entries in Routes:
map.connect('/error/{action}', controller='error')
map.connect('/error/{action}/{id}', controller='error')
# CUSTOM ROUTES HERE
map.connect('home', '/', controller='home', action='index')
map.connect('/{controller}/{action}/{id}', controller='logic',
action='index')
map.connect('/{controller}/{action}')
map.connect('/{controller}')
Thanks.
Edgar
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Piotr Kęplicz <kepl... @cmc.pl>
Date: Tue, 24 Mar 2009 20:15:36 +0100
Local: Tues, Mar 24 2009 3:15 pm
Subject: Re: CSS not used
edgarsmolow:
You haven't showed the most important - CSS URL in your template. Most
probably it's relative (../css/stylesheet.css) instead of absolute
(/css/stylesheet.css).
.pk.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Wyatt Baldwin <wyatt.lee.bald... @gmail.com>
Date: Tue, 24 Mar 2009 12:48:35 -0700 (PDT)
Local: Tues, Mar 24 2009 3:48 pm
Subject: Re: CSS not used
On Mar 24, 12:15 pm, Piotr Kęplicz <kepl
... @cmc.pl> wrote:
> edgarsmolow:
> > CSS is used with URL:
> >http://localhost/logic/q01
> > The page is rendered as expected, with CSS. But, when the following
> > URL is invoked, the page is not rendered with CSS for some reason:
> >http://localhost/logic/q01/ABCDADF84093840384
> You haven't showed the most important - CSS URL in your template. Most
> probably it's relative (../css/stylesheet.css) instead of absolute
> (/css/stylesheet.css).
Also, are you using `url('/css/style.css')`?
<link rel="stylesheet" type="text/css" href="${url('/stylesheets/
base.css')}" />
This will ensure your links work in all cases, whether you're running
your app at a prefix or not.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
edgarsmolow <edgarsmo... @gmail.com>
Date: Tue, 24 Mar 2009 13:48:50 -0700 (PDT)
Local: Tues, Mar 24 2009 4:48 pm
Subject: Re: CSS not used
>> Also, are you using `url('/css/style.css')`?
>> <link rel="stylesheet" type="text/css" href="${url('/stylesheets/base.css')}" />
>> This will ensure your links work in all cases, whether you're running
>> your app at a prefix or not.
That's exactly what I was looking for. Thanks!
Edgar
On Mar 24, 3:48 pm, Wyatt Baldwin <wyatt.lee.bald... @gmail.com> wrote:
> On Mar 24, 12:15 pm, Piotr Kęplicz <kepl
... @cmc.pl> wrote:
> > edgarsmolow:
> > > CSS is used with URL:
> > >http://localhost/logic/q01
> > > The page is rendered as expected, with CSS. But, when the following
> > > URL is invoked, the page is not rendered with CSS for some reason:
> > >http://localhost/logic/q01/ABCDADF84093840384
> > You haven't showed the most important - CSS URL in your template. Most
> > probably it's relative (../css/stylesheet.css) instead of absolute
> > (/css/stylesheet.css).
> Also, are you using `url('/css/style.css')`?
> <link rel="stylesheet" type="text/css" href="${url('/stylesheets/
> base.css')}" />
> This will ensure your links work in all cases, whether you're running
> your app at a prefix or not.
You must
Sign in before you can post messages.
You do not have the permission required to post.