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


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:

pip install 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!!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章