The errors I got before seeing the acutal django cms page...

来源:互联网 发布:交易开拓者 编程 编辑:程序博客网 时间:2024/05/17 07:26


After going through this tutorial (http://docs.django-cms.org/en/2.2/getting_started/tutorial.html), before seeing the cms page, I got erros as followed (in fact, very naive problems, just not much helpful google results from search...):


AttributeError: 'Settings' object has no attribute 'CMS_MODERATOR'

add this into settings.py:

CMS_MODERATOR = True


AttributeError: 'Settings' object has no attribute 'CMS_PERMISSION'

add this into settings.py:

CMS_PERMISSION = True


AttributeError: 'Settings' object has no attribute 'CMS_LANGUAGES'

add this into settings.py:

CMS_LANGUAGES = (
    ('en', gettext('English')),
)


No module named classytags.arguments

run this to install django-classy-tags:

pipinstall django-classy-tags


ImportError: No module named html5lib

run this to install html5lib:

pip install html5lib


==


finally see the first page...


This process took me much longer than Drupal, which does not need much extra background knowledges before you can see the usable website. For django, you need to know a little python, then a little bit how its modules are organized, and the knowledge of linux platform is so important as well, as it saves you much time, compared with my first try using WIN7...


==


ps, in django, placeholders + plugins == so powerful for a simple website!!!