Django won't refresh staticfiles

前端 未结 15 1106
渐次进展
渐次进展 2020-12-07 18:31

This is annoying. I have a javascript file referenced on a django template:

 
15条回答
  •  太阳男子
    2020-12-07 19:06

    I was chasing a css static file change tonight. Going thru a Django tutorial. My Django html page would not show the updated css to my base.css file.

    I would see the original base.css but no my update to file.This is on a dev environment.

    I did not think django cached static on dev and only after running coll ecstatic in production.

    For a quick work around I changed the name of my test sites. base.css file to base1.css and the html page link to base1.css

    reloaded page and my updated css took affect. No best solution. but quick fix.

提交回复
热议问题