先收集静态文件
# settings.py里面需要指定收集的路径STATIC_ROOT与STATIC_URL
python manage.py collectstatic
添加识别代码
# urls.py
path(r'^static/(?P<path>.*)$', serve, {'document_root': STATIC_ROOT}),
标签:...,gunicorn,静态,py,Django,STATIC,swagger,ROOT
From: https://www.cnblogs.com/wanghong1994/p/17822040.html