Management commands

Database schema checker

feincms.management.checker.check_database_schema(cls, module_name)

Returns a function which inspects the database table of the passed class. It checks whether all fields in the model are available on the database too. This is especially helpful for models with an extension mechanism, where the extension might be activated after syncdb has been run for the first time.

Please note that you have to connect the return value using strong references. Here’s an example how to do this:

signals.post_syncdb.connect(check_database_schema(Page, __name__), weak=False)

(Yes, this is a weak attempt at a substitute for South until we find a way to make South work with FeinCMS’ dynamic model creation.)

Content-type specific management commands

Page tree rebuilders

Those should not normally be used. Older versions of MPTT sometimes got confused with repeated saves and tree-structure changes. These management commands helped cleaning up the mess.

Miscellaneous commands

Table Of Contents

Previous topic

Views and decorators

Next topic

FeinCMS 1.8 release notes

This Page