django 數據庫鏈接出現的問題

mysqlclient 1.3.3 or newer is required; you have 0.7.11:

解決方法:mysql

將報錯文件中的以下代碼註釋:sql

if version < (1, 3, 3):
raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.__version__)ui

AttributeError:'str' object has no attribute 'decode'

解決方法:spa

將報錯文件中的以下代碼註釋:code

if query is not None: query = query.decode(errors='replace')string

相關文章
相關標籤/搜索