在settings.py 中配置 STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static') ] 转载于:https://www.cnblogs.com/TF511/p/10604507.html