原文:STATIC_URL、STATIC_ROOT、STATICFILES_DIRS三者区别

一 STATIC URL 作用是通过url直接访问在项目中的静态文件。 二 STATIC ROOT the dir for command python manage.py collectstatic STATIC ROOT os.path.join BASE DIR, collect static locate the common static files STATICFILES DIRS o ...

2020-08-26 09:58 0 537 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM