The way to use background-image in css files with Django

前端 未结 10 1932
离开以前
离开以前 2021-02-05 02:12

I\'d like to use an image file as a background-image on Django. But I do not know how. First, I read this and tried to write like following this in a css file.

10条回答
  •  春和景丽
    2021-02-05 03:11

    Although the solutions listed here are right I just want to add one more thing you need to clear your browser's cache(ctrl + f5) after updating your CSS. Refer to this link.

    Django CSS not updating

提交回复
热议问题