开发者

Google App Engine Patch - How to use stylesheets?

开发者 https://www.devze.com 2022-12-18 12:08 出处:网络
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 proper

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

精彩评论

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

关注公众号