[問題] django static file cashed
1
我修改static file之後 ex map.js
甚至我從static_root移除了map.js
瀏覽器卻還是顯示之前的map資訊
請問是誰(django dev server or web browser?) cach了這些static files?
2
每次修改static file之後都還要執行collectstatic
之後再跑runserver 這樣實在很麻煩
請問大家都是如何做static file修改?
3
即使我使用了{% load staticfiles %}
我是否仍然可以使用
<link rel="icon" href="../../map.js"> 這種方法來讀取static files?
4
collectstatic 這個app好用的地方在哪?
我看了這篇卻沒有感覺 http://0rz.tw/B8AWT
無論我有多少個app 我仍然要在每個html head裡面標明static file的位置
<script src="{% static 'js/map.js' %}"></script>
那跟我直接連去static file dir也是一樣的意思 不是嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 204.96.168.3
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1443310313.A.F57.html
→
09/27 09:37, , 1F
09/27 09:37, 1F
→
09/27 09:42, , 2F
09/27 09:42, 2F
→
09/27 09:46, , 3F
09/27 09:46, 3F
→
09/27 09:46, , 4F
09/27 09:46, 4F
→
09/27 09:49, , 5F
09/27 09:49, 5F
→
09/27 09:50, , 6F
09/27 09:50, 6F
→
09/27 09:51, , 7F
09/27 09:51, 7F
→
09/27 09:51, , 8F
09/27 09:51, 8F
→
09/28 12:33, , 9F
09/28 12:33, 9F
→
09/28 12:33, , 10F
09/28 12:33, 10F
推
09/30 21:17, , 11F
09/30 21:17, 11F
→
09/30 21:18, , 12F
09/30 21:18, 12F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
Python 近期熱門文章
PTT數位生活區 即時熱門文章