按照教程设置了,但是提示找不到静态文件怎么办。
NeverMoes opened this issue · 1 comments
NeverMoes commented
[21/Feb/2017 13:00:25] "GET / HTTP/1.1" 200 542
Not Found: /frontend/static/css/app.d9e5482d15c87b1dd6cd71e0a046b9e0.css
[21/Feb/2017 13:00:25] "GET /frontend/static/css/app.d9e5482d15c87b1dd6cd71e0a046b9e0.css HTTP/1.1" 404 2189
Not Found: /frontend/static/js/manifest.246483826c627e391808.js
[21/Feb/2017 13:00:25] "GET /frontend/static/js/manifest.246483826c627e391808.js HTTP/1.1" 404 2162
Not Found: /frontend/static/js/vendor.7b7201ae295aa30bf628.js
[21/Feb/2017 13:00:25] "GET /frontend/static/js/vendor.7b7201ae295aa30bf628.js HTTP/1.1" 404 2156
Not Found: /frontend/static/js/app.209f0c52a5de8eec60f5.js
[21/Feb/2017 13:00:25] "GET /frontend/static/js/app.209f0c52a5de8eec60f5.js HTTP/1.1" 404 2147
Not Found: /frontend/static/js/manifest.246483826c627e391808.js
[21/Feb/2017 13:00:25] "GET /frontend/static/js/manifest.246483826c627e391808.js HTTP/1.1" 404 2162
Not Found: /frontend/static/js/vendor.7b7201ae295aa30bf628.js
[21/Feb/2017 13:00:25] "GET /frontend/static/js/vendor.7b7201ae295aa30bf628.js HTTP/1.1" 404 2156
Not Found: /frontend/static/js/app.209f0c52a5de8eec60f5.js
[21/Feb/2017 13:00:25] "GET /frontend/static/js/app.209f0c52a5de8eec60f5.js HTTP/1.1" 404 2147
已经加了这句了
# Add for vuejs
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "frontend/dist/static"),
]
NeverMoes commented
index.js 的路径写错了
已解决