Tools/helpers around Django-CMS
Project description
Miscellaneous tools/helpers for django CMS.
Look also at the siblings project: django-tools (Tools/helpers around Django).
existing stuff
test fixture creation
create_cms_index_pages
Create CMS home page in all existing languages (settings.LANGUAGES) and fill placeholder with TextPlugin.
Source: django_cms_tools.fixtures.pages.create_cms_index_pages Test/Example: /tests/test_fixtures_pages.py
create_cms_plugin_page
Create CMS plugin page in all existing languages (settings.LANGUAGES) and add a link to the index page.
Source: django_cms_tools.fixtures.pages.create_cms_plugin_page Test/Example: /tests/test_fixtures_pages.py
django filer tools experimental
Activate by change your settings.py, e.g.:
INSTALLED_APPS = [ ... 'django_cms_tools.filer_tools', ... ]
‘image info’ management command
Display information about the number of existing, missing and ignored images. And a summary about all used images. usage:
$ ./manage.py 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 ... total: 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:
make a DB dump on the source system
insert the DB dump the the cloned system
log into django admin of the new cloned version
upload a “dummy.jpg” filer image
write down the filer image ID (e.g.: 123)
start: $ ./manage.py replace_broken 123
Django compatibility
django-cms-tools |
django version |
python |
---|---|---|
v0.1.x |
1.8 |
2.7, 3.4, 3.5 |
(Look also into .travis.yml for version combination tested via travis-ci)
TODO:
Add tests for ‘filer commands’
Support Django 1.9 and 1.10 and run tests against these versions.
history
v0.2.0 - 10.04.2017 - compare v0.1.2…v0.2.0
Experimental: Filer management commands: ‘image_info’ and ‘replace_broken’
v0.1.2 - 28.03.2017 - compare v0.1.1…v0.1.2
Change: create pages with translated language name
v0.1.1 - 27.03.2017 - compare v0.1.0…v0.1.1
Fix pypi package stuff
v0.1.0 - 27.03.2017
NEW: create_cms_index_pages
NEW: create_cms_plugin_page
links
Homepage |
|
PyPi |
donation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file django-cms-tools-0.2.0.tar.gz
.
File metadata
- Download URL: django-cms-tools-0.2.0.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 571a9fb61f3fbc19b5aa9839e40853c5f738e2ae5fd2f6bea26d3f3aa7f358bf |
|
MD5 | dcca8db03ea7c8591b8dd55f20ce61ec |
|
BLAKE2b-256 | 729886da2b78c10e8d935621c8233622a4ef0e3af0acda0ec9d036f33c197fbe |
Provenance
File details
Details for the file django_cms_tools-0.2.0-py3.5.egg
.
File metadata
- Download URL: django_cms_tools-0.2.0-py3.5.egg
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15dd648eb6f2b9d422d0309e76cb9d700bbd5f0a0f925ca32e1085c1702b72d2 |
|
MD5 | cedbb4d5f69b18216779241993e5b5f0 |
|
BLAKE2b-256 | 7f13887b2340fdb95e94ff19dc57258e3b4c7b0e390617c802d9a0e20ea39965 |
Provenance
File details
Details for the file django_cms_tools-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_cms_tools-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e1369f49e01a1d61f2c120d684ab4e6e6bf8a04dde3c9b36d045e5c7c2dd4a2 |
|
MD5 | e637cebde5d4b99d4ed5a8d81ac9c127 |
|
BLAKE2b-256 | 0f32a1326d1b95d7feeffaf987bfb4e8c0aacacb8ca9ec3f2ca2e195dec1609b |