Why CSS files doesn't read

733 views
Skip to first unread message

Heur

unread,
Apr 30, 2011, 1:12:43 AM4/30/11
to web.py
Hi guys... and girls... :D

I have a simples subscribe program with web.py.
And I'm using some templates. One of those templates have a

$def with (user)

on start.

When I put the way to my css files, the server don't find the file.
I've executed tests, openning the template file alone, direct in the
browser,
and it read the css file without problems.

When I run it in the server, with python, don't read my css file.

Someone can help me?
Is a configuration, or no such options for this?

(and sorry for the grammatical error's, because I'm brazilian)

Obrigado Gente :D:D:D

Joshua Higgins

unread,
Apr 30, 2011, 5:22:11 AM4/30/11
to we...@googlegroups.com
For the built in server you have to put CSS, images and etc in a
folder called static
e.g. Your CSS url would be /static/path/to/css.css

(and hello list, first post... just been watching but I'll start with
an easy one)

Josh.

> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to we...@googlegroups.com.
> To unsubscribe from this group, send email to
> webpy+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>
>

--
Sent from my mobile device

joshua higgins
>>>>>>------

et0r

unread,
Apr 30, 2011, 3:15:57 AM4/30/11
to web.py
I suppose you are pointing the static css file with something like :
<link rel="stylesheet" href="/static/file.css">

/static is the folder webpy provides for such files.

And making sure your regex for the uri doesn't overwrite the "static"
keyword... right?

Saludos desde México.

Andrey Luiz

unread,
Apr 30, 2011, 8:15:59 AM4/30/11
to we...@googlegroups.com
Hahahaaaa,
run's perfectly.

Thank you very much everyone.

Obrigado Amigos. :D:D

2011/4/30 Joshua Higgins <joshi...@gmail.com>



--
Atenciosamente...

Andrey Luiz - Modelagem, Animação e Desenvolvimento.
e-mail: andre...@gmail.com
msn: andre...@live.it
cel: (42) 8844-5929
Pato Branco, PR

sd

unread,
May 1, 2011, 8:27:20 AM5/1/11
to we...@googlegroups.com
is your css file into /static directory ?
what is the structure of your project ?

s

Reply all
Reply to author
Forward
0 new messages