设置 STATICFILED_DIRS 仍然找不到静态文件
Nataila opened this issue · 1 comments
Nataila commented
我webpack之后的文件在 app/dist/static/build.js
index.html 里面引入是用的 </script>
在django的settings里面设置了
STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'app/dist/static') ]
INSTALLED_APP里面也加了 app
但是运行的时候,仍然找不到build.js
是不是需要再index.html引入build.js的时候仍然需要使用{% static '' %}?