如何看 settings 中的各項參數

在專案 manage.py 所在資料夾開啟命令提示字元

python manage.py shell
from django.conf import settings
settings.STATICFILES_DIRS  #可輸入想查看的參數名稱,此已 static 所在的路徑為例

file

Was this article helpful? Votes: 0
Article details:
Published date: 21/05/2019 5:46AM
Last updated: 21/05/2019 5:46AM (Andy - andy.yen@nuwainfo.com)
Share article: 
Author: Andy (andy.yen@nuwainfo.com)