Helpers for django CMS plugin development
Project description
Helper for django CMS plugin development
djangocms-helper is a set of commands to handle django CMS plugins development process.
It’s a modified version of django CMS’s own develop.py script, modified to handle generic plugins development process.
Common options
--cms: Loads configuration to properly run a django CMS-based application;
--extra-settings: Path to a helper file to set extra settings; see Customizing settings for details;
Usage
The command must be executed in the main plugin directory (i.e. in the same directory as the setup.py file) as it needs to import files relative to the current directory.
The basic command structure is:
djangocms-helper <application> <command> [options ...]
where <application> is the django application name and <command> is one of the available commands. Optins vary for each command.
Available commands
test
Test command allows to run the application test suite using test environemnt similar to the django CMS testsuite.
Test structure
Currently two different tests layouts are supported:
tests outside the application module:
setup.py tests __init__.py test_module1.py ....
tests inside the application:
setup.py application tests __init__.py test_module1.py ...
Depending on the used test runner you may need to setup your tests accordingly.
Currently supported test runners are:
Django’s DiscoverRunner (default)
Django’s DjangoTestSuiteRunner (option --simple-runner)
Nose’s NoseTestSuiteRunner (option --nose-runner)
You can also write your own runner an use it with --runner option.
Arguments
<test-label>: a space-separated list of tests to run;
Options
--runner: custom test runner to use in dotted path notation;
--failfast: whether to stop at first test failure;
--migrate: whether to apply south migrations when running tests;
--xvfb: whether to configure xvfb (for frontend tests);
--nose-runner: use django nose test suite
--simple-runner use Django DjangoTestSuiteRunner
shell
Starts a django shell for the test project.
compilemessages
Compiles the locale messages.
makemessages
Updates the locale messages for the current application.
makemigrations
Updates the application migrations (south migrations or Django migrations according to the current installed Django version). For South, it automatically handles initial / auto options.
pyflakes
Performs static analysis using pyflakes with the same configuration as django CMS.
Installation
Installing from pip:
pip install djangocms-helper
Installing from source:
pip install git+https://github.com/nephila/djangocms-helper#egg=djangocms-helper
Requirements
django CMS 3.0 (django CMS 3.0.4 is required for pyflake command)
docopt
tox
dj-database-url
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 Distribution
File details
Details for the file djangocms-helper-0.3.0.tar.gz
.
File metadata
- Download URL: djangocms-helper-0.3.0.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f959b4767866af789b442e755203d511ba4d6130f3dd40e10163d1f9ffbf305 |
|
MD5 | 8962a54d78a893f46afda69897e638d4 |
|
BLAKE2b-256 | 38a8e28132fd70739eb72c818ef29c0f75053dd5c9de102c897a97a42bb8d2b9 |
File details
Details for the file djangocms_helper-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: djangocms_helper-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeae983d91bffa82eee150be27cd996cd7585fe92f637918dbfd6e457869b953 |
|
MD5 | a03016928151b9b1541ed2634717969b |
|
BLAKE2b-256 | 64ba61d29b92f419bf15e408b622b072450834e23a4c86e16bc225af0d90dd4b |