运行网页报错:

Exception Type:RuntimeError

Exception Value:

generator raised StopIteration

Exception Location:/Users/dongchao/.virtualenvs/py_django/lib/python3.7/site-packages/django/http/multipartparser.py in read, line 337

Python Executable:/Users/dongchao/.virtualenvs/py_django/bin/python

Python Version:3.8

原来创建虚拟环境pytorch,python=3.8,但与Django1.8.2的版本不匹配,家重新创建python3.6的虚拟环境pytorch2

下载Django:pip install django==1.8.2 -i https://pypi.tuna.tsinghua.edu.cn/simple

下载pymysql:pip install pymysql -i https://pypi.tuna.tsinghua.edu.cn/simple