当前位置: 首页 > 工具软件 > Mezzanine > 使用案例 >

mezzanine problem——01

衡丰茂
2023-12-01
AttributeError: 'Settings' object has no attribute 'GRAPPELLI_INSTALLED'

D:\tree\mezzanine\proj_01>


---------------------------------------------------------------------------------------------------

C:\Users\Administrator>pip install mezzanine
Downloading/unpacking mezzanine
Requirement already satisfied (use --upgrade to upgrade): bleach>=1.4 in c:\pyth
on27\lib\site-packages (from mezzanine)
Requirement already satisfied (use --upgrade to upgrade): requests-oauthlib>=0.4
 in c:\python27\lib\site-packages (from mezzanine)
Downloading/unpacking django>=1.4.10,!=1.6.0,<1.7 (from mezzanine)  #此处说明mezzanine不兼容django 1.6
Downloading/unpacking tzlocal==1.0 (from mezzanine)


  #此处说明mezzanine不兼容django 1.6

所以卸载django重新安装即可

只需要运行pip uninstall django

pip install mezzanine

Successfully installed mezzanine django tzlocal filebrowser-safe future pillow
equests beautifulsoup4 grappelli-safe pytz
Cleaning up...

C:\Users\Administrator>python
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on wi
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> import django as dj
>>> dj.get_version()
'1.6.8'
>>>


========================================================

安装MySQL-Python,而不是 pip install MySQLdb

地址: https://pypi.python.org/packages/2.7/M/MySQL-python/MySQL-python-1.2.5.win32-py2.7.exe#md5=6f43f42516ea26e79cfb100af69a925e

 类似资料: