在服务器apache2或nginx的站点配置文件中修改或添加static文件夹的路径,重启服务器后站点则能够正常访问静态资源了
python manage.py runserver --insecure
如上所示,添加--insecure参数