我正在尝试安装 django-cms 。但我得到了以下错误
Traceback (most recent call last):
File "/home/savad/virtuals/kw/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 229, in wrapper
fn(*args, **kwargs)
File "/home/savad/virtuals/kw/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 107, in inner_run
autoreload.raise_last_exception()
File "/home/savad/virtuals/kw/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 252, in raise_last_exception
six.reraise(*_exception)
File "/home/savad/virtuals/kw/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 229, in wrapper
fn(*args, **kwargs)
File "/home/savad/virtuals/kw/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/savad/virtuals/kw/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/home/savad/virtuals/kw/local/lib/python2.7/site-packages/django/apps/config.py", line 119, in create
import_module(entry)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named sitescms
我使用了django-cms == 3.4.2和django == 1.8.17。
答案 0 :(得分:1)
对我来说,您似乎错过了INSTALLED_APPS
settings.py
列表中的逗号。
可能是它说
...,
'sites'
'cms',
...
而不是
...,
'sites',
'cms',
....
缺少的逗号会导致sitescms
。