文章目录 一、修改settings.py二、使用收集静态文件命令 一、修改settings.py 添加静态文件根目录 STATIC_ROOT = os.path.join(BASE_DIR, 'static') 二、使用收集静态文件命令 python manage.py collectstatic