Django template can't see CSS files

前端 未结 5 670
北恋
北恋 2021-01-30 09:25

I\'m building a django app and I can\'t get the templates to see the CSS files... My settings.py file looks like:

MEDIA_ROOT = os.path.join(os.path.abspath(os.p         


        
5条回答
  •  长情又很酷
    2021-01-30 10:13

    ADMIN_MEDIA_PREFIX is set to \media\ by default, and is probably 'stealing' the path. Change that setting, or use a different one for non-admin media - eg site_media or assets.

提交回复
热议问题