skip to navigation
skip to content

django-cms-tools 0.4.0

Tools/helpers around Django-CMS

Miscellaneous tools/helpers for django CMS.

Look also at the siblings project: django-tools (Tools/helpers around Django).

existing stuff

test fixture creation


Helper for creating Django CMS pages in test fixtures:

Class django_cms_tools.fixtures.pages.***CmsPageCreator* can be used for create normal/plugin CMS pages. Inherit from the class and overwrite attributes/methods for your need ;) Example, look into the Test code.

Source: django_cms_tools/fixtures/ Test/Example: /tests/


Create CMS home page in all existing languages (settings.LANGUAGES) and fill placeholder with TextPlugin, use:

  • django_cms_tools.fixtures.pages.***create_cms_index_pages*


Create CMS plugin page in all existing languages (settings.LANGUAGES) and add a link to the index page.

  • django_cms_tools.fixtures.pages.***create_cms_plugin_page*

django filer tools experimental

Activate by change your, e.g.:


‘image info’ management command

Display information about the number of existing, missing and ignored images. And a summary about all used images. usage:

$ ./ image_info

34 items - foo.Bar
34 instanced checked:
   0 exist    0 missing   34 ignored - foo.BarModel.meta_image
  34 exist    0 missing    0 ignored - foo.BarModel.filer_overview_image


    existing images..: 6171
    missing images...: 0
Collect all filer IDs...
File: 2 entries
Image: 2 entries
Information about File:
    Total entry count: 8042 entries.
    Used entry count: 2 entries.
    Total size: 13.8 GB
    Used size: 997.5 KB
Information about Image:
    Total entry count: 6993 entries.
    Used entry count: 2 entries.
    Total size: 13.7 GB
    Used size: 997.5 KB
(Note: 'File' contains 'Image' ;)

‘replace broken’ management command

Replace all not existing files files with a given filer ID.

e.g.: You would like to make a clone of a existing installation, but without to move the real files:

  1. make a DB dump on the source system
  2. insert the DB dump the the cloned system
  3. log into django admin of the new cloned version
  4. upload a “dummy.jpg” filer image
  5. write down the filer image ID (e.g.: 123)
  6. start: $ ./ replace_broken 123

Django compatibility

django-cms-tools django version python
v0.4.0 1.8 2.7, 3.5, 3.6
v0.1.x 1.8 2.7, 3.4, 3.5

(Look also into .travis.yml for version combination tested via travis-ci)


  • Add tests for ‘filer commands’
  • Support Django 1.9 and 1.10 and run tests against these versions.


File Type Py Version Uploaded on Size
django-cms-tools-0.4.0.tar.gz (md5) Source 2017-09-18 37KB
django_cms_tools-0.4.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-09-18 36KB
django_cms_tools-0.4.0-py3.5.egg (md5) Python Egg 3.5 2017-09-18 31KB