An error occurred while django connect mysql database, create tables

Execute python manage.py makemigrations

Reported the following error:

Found in the code:

Solution:

To the code 
Query = query.decode (errors = ' Replace ' ) 
modify 
 Query = query.encode (errors = ' Replace ' )

 

Guess you like

Origin www.cnblogs.com/yrash/p/11422149.html