Discussion:
reversion problem
Simon
2011-02-16 20:26:16 UTC
Permalink
Hi all,
please help I'm stuck. I've migrated working website to a new server on
webfaction, I copied the DB and moved files. Everything is identical, even
the libraries and user ...
Yet the app does not want to start :)
I got this error every time:
*
*
*RegistrationError: <class 'cms.models.pagemodel.Page'> has already been
registered with Reversion. *

Traceback (most recent call last):
File
"/home/username/webapps/myapp_125/lib/python2.6/django/core/handlers/wsgi.py",
line 232, in __call__
self.load_middleware()
File
"/home/username/webapps/myapp_125/lib/python2.6/django/core/handlers/base.py",
line 40, in load_middleware
mod = import_module(mw_module)
File
"/home/username/webapps/myapp_125/lib/python2.6/django/utils/importlib.py",
line 35, in import_module
__import__(name)
File
"/home/username/webapps/myapp_125/lib/python2.6/cms/middleware/toolbar.py",
line 5, in <module>
from cms.utils.plugins import get_placeholders
File
"/home/username/webapps/myapp_125/lib/python2.6/cms/utils/plugins.py", line
6, in <module>
from cms.templatetags.cms_tags import PlaceholderNode
File
"/home/username/webapps/myapp_125/lib/python2.6/cms/templatetags/cms_tags.py",
line 4, in <module>
from cms.utils.moderator import get_cmsplugin_queryset,
get_page_queryset
File
"/home/username/webapps/myapp_125/lib/python2.6/cms/utils/moderator.py",
line 4, in <module>
from cms.models import Page, PageModeratorState, PageModerator,
CMSPlugin, Title,\\
File
"/home/username/webapps/myapp_125/lib/python2.6/cms/models/__init__.py",
line 9, in <module>
from cms import signals as s_import
File "/home/username/webapps/myapp_125/lib/python2.6/cms/signals.py", line
3, in <module>
from cms.models import Page, Title, CMSPlugin, Placeholder
File
"/home/username/webapps/myapp_125/lib/python2.6/cms/cms/models/__init__.py",
line 2, in <module>
from pagemodel import *
File
"/home/username/webapps/myapp_125/lib/python2.6/cms/cms/models/pagemodel.py",
line 733, in <module>
reversion_register(Page, follow=["title_set", "cmsplugin_set",
"pagepermission_set"])
File
"/home/username/webapps/myapp_125/lib/python2.6/cms/utils/helpers.py", line
38, in reversion_register
reversion_hacks.register_draft_only(model_class, fields, follow, format)
File
"/home/username/webapps/myapp_125/lib/python2.6/cms/utils/reversion_hacks.py",
line 15, in register_draft_only
raise RegistrationError, "%r has already been registered with
Reversion." % model_class
RegistrationError: <class 'cms.models.pagemodel.Page'> has already been
registered with Reversion.

Any ideas?
Thanks

Simon
--
You received this message because you are subscribed to the Google Groups "django-cms" group.
To post to this group, send email to django-cms-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to django-cms+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/django-cms?hl=en.
Simon
2011-02-16 20:44:55 UTC
Permalink
I've found some hint that my problem might be connected to model
registration:
http://code.google.com/p/django-reversion/wiki/LowLevelAPI#Registering_Models_for_Version_Control

There is a line:
*Warning: When Django starts up, some python scripts get loaded twice, which
can cause 'already registered' errors to be thrown. If you place your calls
to reversion.register in the models.py file, immediately after the model
definition, this problem will go away.*
*
*
But I don't know how to use that to make django-cms to work :(
--
You received this message because you are subscribed to the Google Groups "django-cms" group.
To post to this group, send email to django-cms-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to django-cms+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/django-cms?hl=en.
Jonas Obrist
2011-02-16 20:46:51 UTC
Permalink
It looks like you use 2.0, is upgrading to 2.1.2 an option for you?
--
You received this message because you are subscribed to the Google Groups "django-cms" group.
To post to this group, send email to django-cms-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to django-cms+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/django-cms?hl=en.
Simon
2011-02-17 13:59:08 UTC
Permalink
How hard is it to upgrade? Are there somewhere any upgrade steps how to
proceed to keep everything working?
--
You received this message because you are subscribed to the Google Groups "django-cms" group.
To post to this group, send email to django-cms-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to django-cms+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/django-cms?hl=en.
Simon
2011-02-26 16:10:47 UTC
Permalink
Please, can anyone tell me what to do If I want upgrade to newer version?
I've noticed there is not reversion and only south. I'm not sure how to
migrate my db to the new version...

Thanks in advance
Simon
--
You received this message because you are subscribed to the Google Groups "django-cms" group.
To post to this group, send email to django-cms-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to django-cms+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/django-cms?hl=en.
Simon
2011-03-04 11:23:56 UTC
Permalink
Please does anyone now if it is possible upgrade from 2.0 to 2.1.2?

I'm stuck... please I'm asking for the 3rd time :)
--
You received this message because you are subscribed to the Google Groups "django-cms" group.
To post to this group, send email to django-cms-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to django-cms+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/django-cms?hl=en.
Ionel Maries Cristian
2011-03-04 11:48:03 UTC
Permalink
You need to run the south migrations. Should be as straightforward as
running manage.py syncdb --migrate

As always, backup your data - just in case.

-- Ionel
Post by Simon
Please does anyone now if it is possible upgrade from 2.0 to 2.1.2?
I'm stuck... please I'm asking for the 3rd time :)
--
You received this message because you are subscribed to the Google Groups
"django-cms" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/django-cms?hl=en.
--
You received this message because you are subscribed to the Google Groups "django-cms" group.
To post to this group, send email to django-cms-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to django-cms+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/django-cms?hl=en.
Loading...