Django won't refresh staticfiles

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

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

 
15条回答
  •  自闭症患者
    2020-12-07 19:15

    It sounds like both your browsers have the javascript file cached. In Chrome you can clear the cache by pressing Ctrl + Shift + Del and ticking just 'Cached images and files'. Firefox probably has a similar shortcut.

    You can take a look at this question on tips to disable caching of static files on your development server altogether.

提交回复
热议问题