Answer the question
In order to leave comments, you need to log in
How to fix a bug when installing django-cms?
Installing django-cms at https://github.com/divio/django-cms-tutorial/blob/...
After following some steps in How to fix django-cms installation error? fixed part of the problem, but still this trouble comes up when you enter the djangocms -p command. my_site:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 77, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/south/management/commands/__init__.py", line 10, in <module>
import django.template.loaders.app_directories
File "/usr/local/lib/python2.7/dist-packages/django/template/loaders/app_directories.py", line 23, in <module>
mod = import_module(app)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/reversion/__init__.py", line 12, in <module>
from reversion.admin import VersionAdmin
File "/usr/local/lib/python2.7/dist-packages/reversion/admin.py", line 31, in <module>
class VersionAdmin(admin.ModelAdmin):
File "/usr/local/lib/python2.7/dist-packages/reversion/admin.py", line 390, in VersionAdmin
@transaction.atomic
AttributeError: 'module' object has no attribute 'atomic'
Traceback (most recent call last):
File "/usr/local/bin/djangocms", line 11, in <module>
sys.exit(execute())
File "/usr/local/lib/python2.7/dist-packages/djangocms_installer/main.py", line 31, in execute
django.setup_database(config_data)
File "/usr/local/lib/python2.7/dist-packages/djangocms_installer/django/__init__.py", line 268, in setup_database
"manage.py", "syncdb", "--all", "--noinput"])
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-W', 'ignore', 'manage.py', 'syncdb', '--all', '--noinput']' returned non-zero exit status 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question