我执行以下步骤在beginig
运行django-cms首先我安装virtualenv并激活它然后我通过pip安装djangocms-installer。
当我想要运行djangocms -f -p . mysite
时,我得到了这个错误:
Traceback (most recent call last):
File "/home/sahar/cms/2/sahar/bin/djangocms", line 11, in <module>
sys.exit(execute())
File "/home/sahar/cms/2/sahar/lib/python3.5/site-packages/djangocms_installer/main.py", line 15, in execute
config_data = config.parse(sys.argv[1:])
File "/home/sahar/cms/2/sahar/lib/python3.5/site-packages/djangocms_installer/config/__init__.py", line 42, in parse
required=False, default=get_localzone(),
File "/home/sahar/cms/2/sahar/lib/python3.5/site-packages/tzlocal/unix.py", line 122, in get_localzone
_cache_tz = _get_localzone()
File "/home/sahar/cms/2/sahar/lib/python3.5/site-packages/tzlocal/unix.py", line 114, in _get_localzone
return pytz.tzfile.build_tzinfo('local', tzfile)
File "/home/sahar/cms/2/sahar/lib/python3.5/site-packages/pytz/tzfile.py", line 30, in build_tzinfo
typecnt, charcnt) = unpack(head_fmt, fp.read(head_size))
struct.error: unpack requires a bytes object of length 44
我的步骤有什么问题? 我从docs.django-cms
开始执行这些步骤答案 0 :(得分:0)
Django CMS不支持python 3.5
django CMS requires Django version 1.6.9 or later, 1.7 or 1.8, and Python 2.6, 2.7, 3.3 or 3.4.