开发者

Google App Engine Patch - How to use stylesheets?

Struggling with an install of GAE-Patch and using my stylesheets. My settings.py has the following lines included already, but the media generator is not compi开发者_Go百科ling and packaging it properly:

    'combined-%(LANGUAGE_DIR)s.css': (
        'global/look.css',
    ),
    'combined-%(LANGUAGE_DIR)s.css': (
        'global/base-%(LANGUAGE_DIR)s.css',
        'owr/main.css',
    ),

and

INSTALLED_APPS = (
    'owr',
)

Where is the stylesheet supposed to go, in which folder? Under owr/media?


You should look at the app.yaml file:

It should look like this:

handlers:
- url: /media
    static_dir: _generated_media

This means that you need to put your css, etc in the _generated_media folder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜