3
我是django的新手,經過一些django
教程我已經開始使用django-cms
(我有一個要求用django-cms開發一個cms站點)。django-cms導入錯誤
我已經編輯的設置文件,並添加了所有的中間件,這是必要的cms
的應用程序,所以一切都很好,開始開發HTML模板,但我重新啓動服務器,並得到如下奇怪的錯誤後,有時
ERROR_1
Django Version: 1.4.3
Exception Type: ImportError
Exception Value:
cannot import name plugin_pool
Exception Location: /usr/lib/python2.7/site-packages/cms/admin/__init__.py in <module>, line 7
Python Executable: /usr/bin/python
Error_2
Django Version: 1.4.3
Exception Value: Reverse for 'pages-root' with arguments '()' and keyword arguments '{}' not found
Exception Location: /usr/lib/python2.7/site-packages/cms/models/__init__.py in new_reverse, line 67
Python Executable: /usr/bin/python
................
這是我面臨的,有時,不知道是不是因爲他們是突然出現的,爲什麼他們遇到了兩個錯誤,我可以知道如何避免這些錯誤
一些設置低於
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'cms.middleware.multilingual.MultilingualURLMiddleware', #CMS
'cms.middleware.page.CurrentPageMiddleware', #CMS
'cms.middleware.user.CurrentUserMiddleware', #CMS
'cms.middleware.toolbar.ToolbarMiddleware', #CMS
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'cms',
'mptt',
'menus',
'south',
'sekizai',
'reversion',
'cms.plugins.text',
'filer',
'easy_thumbnails',
'cmsplugin_filer_file',
'cmsplugin_filer_image',
'cmsplugin_filer_teaser',
'cms.plugins.link',
'cms_themes',
)