报错内容如下
AttributeError: 'bytes' object has no attribute 'encode'
这是使用了pymysql代替了mysqlclient,报的错误
Watching for file changes with StatReloader
System check identified no issues (0 silenced).
Exception in thread django-main-thread:
Traceback (most recent call last):
File "E:\Python\Python37\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "E:\Python\Python37\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\django\utils\autoreload.py", line 54, in wrapper
fn(*args, **kwargs)
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py", line 120, in inner_run
self.check_migrations()
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\django\core\man