mezzanine problem——01

来源:互联网 发布:安装包制作工具 知乎 编辑:程序博客网 时间:2024/03/29 01:57
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

0 0
原创粉丝点击