/home/python/.virtualenvs/django_py3_1.11/bin/python /home/python/Desktop/bookmanager5/manage.py runserver
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f6e5a958730>
Traceback (most recent call last):
File "/home/python/.virtualenvs/django_py3_1.11/local/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 26, in <module>
import MySQLdb as Database
ImportError: No module named 'MySQLdb'
解决:项目__init__.py中
import pymysql
pymysql.install_as_MySQLdb()
确保这俩句格式正确