在本機端一直遇到 static files 404,但相對路徑都對

參考 https://docs.djangoproject.com/en/1.11/ref/contrib/staticfiles/#cmdoption-runserver-insecure

因為在本機 DEBUG=False 的時候,要使用 django-admin runserver --insecure 讓 django 強制去找 static files

Was this article helpful? Votes: 0
Article details:
Published date: 25/07/2017 7:27AM
Last updated: 25/07/2017 7:27AM (David - david.lee@nuwainfo.com)
Share article: 
Author: David (david.lee@nuwainfo.com)