Skip to content
HonzaKral edited this page Dec 12, 2012 · 3 revisions

When migrating from ella-comments you need to:

Settings:

  • change listing handlers to flatcomments variants
  • add ella_flatcomments to INSTALLED_APPS

run migration:

>>> from ella_flatcomments.utils import migrate_legacy_comments
>>> migrate_legacy_comments()

remove django.contrib.comments, threadedcomments and ella_comments from INSTALLED_APPS

note that for some DBs (postgres) you will need to reset the DB's sequence:

SELECT setval(pg_get_serial_sequence('ella_flatcomments_flatcomment', 'id'), (SELECT max(id) + 1 from ella_flatcomments_flatcomment));
Clone this wiki locally