Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Incompatibility with django-reversion 1.5 #997

Closed
mbaechtold opened this Issue Sep 8, 2011 · 2 comments

Comments

Projects
None yet
3 participants

Just installed django-reversion 1.5 with django-cms 2.2rc3.
When running the dev server, I get the following error:

Traceback (most recent call last):
File "/path/to/virtualenv/bin/django-admin.py", line 5, in
management.execute_from_command_line()
File "/path/to/virtualenv/lib/python2.7/site-packages/django/core/management/init.py", line 429, in execute_from_command_line
utility.execute()
File "/path/to/virtualenv/lib/python2.7/site-packages/django/core/management/init.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(_args, *_options.dict)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/core/management/base.py", line 209, in execute
translation.activate('en-us')
File "/path/to/virtualenv/lib/python2.7/site-packages/django/utils/translation/init.py", line 100, in activate
return _trans.activate(language)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 202, in activate
_active.value = translation(language)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 185, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 162, in _fetch
app = import_module(appname)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
import(name)
File "/path/to/project/libs/cms/init.py", line 9, in
patch_settings()
File "/path/to/project/libs/cms/conf/init.py", line 32, in patch_settings
post_patch_check()
File "/path/to/project/libs/cms/conf/patch.py", line 56, in post_patch_check
if not validate_template(template[0], ['js', 'css']):
File "/path/to/virtualenv/lib/python2.7/site-packages/sekizai/helpers.py", line 78, in validate_template
found = get_namespaces(template)
File "/path/to/virtualenv/lib/python2.7/site-packages/sekizai/helpers.py", line 70, in get_namespaces
compiled_template = get_template(template)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/loader.py", line 157, in get_template
template, origin = find_template(template_name)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/loader.py", line 134, in find_template
source, display_name = loader(name, dirs)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/loader.py", line 42, in call
return self.load_template(template_name, template_dirs)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/loader.py", line 48, in load_template
template = get_template_from_string(source, origin, template_name)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/loader.py", line 168, in get_template_from_string
return Template(source, origin, name)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/base.py", line 108, in init
self.nodelist = compile_string(template_string, origin)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/base.py", line 136, in compile_string
return parser.parse()
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/base.py", line 239, in parse
compiled_result = compile_func(self, token)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/loader_tags.py", line 214, in do_extends
nodelist = parser.parse()
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/base.py", line 239, in parse
compiled_result = compile_func(self, token)
File "/path/to/virtualenv/lib/python2.7/site-packages/django/template/defaulttags.py", line 1054, in load
(taglib, e))

Contributor

keimlink commented Sep 9, 2011

django-cms 2.2rc3 works with django-reversion 1.4.

@keimlink keimlink added a commit to keimlink/django-cms that referenced this issue Sep 9, 2011

@keimlink keimlink Fixed Issue #997: Added django-reversion version. 84b0a3b

@ojii ojii added a commit that referenced this issue Sep 9, 2011

@ojii ojii Merge pull request #1001 from keimlink/develop
Fixed Issue #997: Added django-reversion version.
2b16978
Collaborator

ojii commented Sep 10, 2011

fixed in 2b16978

@ojii ojii closed this Sep 10, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment