Seite 1 von 1
Python + CSS
Verfasst: Sonntag 20. November 2005, 06:02
von Paulina
Hi, I am trying to view a html page on my CherryPy server, but it seems like it doesn't recognize the CSS file that comes with the html file. What is the problem? How can I solve it?
/Paulina
Verfasst: Sonntag 20. November 2005, 11:08
von Clython
In case you haven't noticed, this board is a German writing one. Now you have two possibilities:
1. Change to an English writing one
2. Learn German
To come back to your problem:
Are you sure that the error is not in your html-Code? Try pasting your code in a text-file and save it as whatever.htm an open it in your browser (be sure the path to your css-file is correct).
Verfasst: Sonntag 20. November 2005, 12:04
von Leonidas
Are you using TurboGears? TG has a 'static' Directory where all CSS Files can be stored.
Verfasst: Sonntag 20. November 2005, 12:44
von mitsuhiko
<mandatory post>
use wsgi and import the ChromeMiddleware ^^
</mandatory post>
Vielen Dank!
Verfasst: Sonntag 20. November 2005, 21:37
von Paulina
Also, ich kann Deutsch sprechen und lesen, so bitte antworten Sie im Deutsch. However, I feel more comfortable writing in English.
I am not using TurboGears... I am using CherryPy and I wonder if it uses the same kind of static directories as TG. Do you know any good links where they explain this static directory thing?
Vielen Dank!
Verfasst: Sonntag 20. November 2005, 22:14
von raist1314
As of version 2.1 CherryPy now has its own filter for static content called staticFilter. For an indepth explanation see
1.5 Static Content Handling.
Sebastian
Filter
Verfasst: Montag 21. November 2005, 00:41
von Paulina
One more question: When they say:
Second in the config file you must turn the filter on like this : filterName.on = True.
Where can I find this config file?
/Paulina
Conf
Verfasst: Montag 21. November 2005, 00:45
von Paulina
Sorry...and how do I specify when where and why this conf-file is to be used?
Verfasst: Montag 21. November 2005, 09:07
von raist1314