Django: how do you serve media / stylesheets and link to them within templates

后端 未结 7 1673
心在旅途
心在旅途 2020-12-07 09:47

Variations of this question have been asked, but I\'m still unable to get my stylesheets to load correctly when my templates are rendered.

I\'m attempting to serve s

7条回答
  •  执笔经年
    2020-12-07 09:51

    I just use absolute naming. Unless you're running the site in a deep path (or even if you are), I'd drop the .. and go for something like:

    
    

提交回复
热议问题