zoukankan      html  css  js  c++  java
  • django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.解决办法

    "E:API_Manager_PlatFormvenvlibsite-packagesdjangodbackendsmysqlase.py"在这个路径里件把base.py
    if version < (1, 3, 3):
         raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.__version__) 

    注释掉 就行了

    另一个问题

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

    解决方法1:把decode改为encode即可。

    解决思路2:
    根据问题提示,意思是,属性错误:“str”对象没有属性“decode”
    python3.5和Python2.7在套接字返回值解码上的区别 
    python在bytes和str两种类型转换,所需要的函数依次是encode(),decode()

  • 相关阅读:
    计算机网络基础
    ansible
    CDH集群日常
    漏洞挖掘学习
    JDWP
    开源安全项目调研
    SMB漏洞汇总
    Windows账户LM/NTLM
    SMB知识汇总
    Memcache未授权漏洞
  • 原文地址:https://www.cnblogs.com/dangkai/p/10833562.html
Copyright © 2011-2022 走看看