Skip to main content

Helpers for django CMS plugin development

Project description

djangocms-helper

Latest PyPI version Latest Travis CI build status Montly downloads Test coverage

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.

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 a setup similar to the django CMS testsuite. It requires that tests are included in application.tests package and imported in the package namespace; test modules must be named test_foo.

application.tests.__init__.py:

from .test_one import *
from .test_two import *

application.tests.test_one.py:

class MyTests(TestCase):

    def test_foo(self):
        pass

    def test_bar(self):
        pass

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.

authors

Generates the authors list from the git log suitable for the AUTHORS file.

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

TODO

  • Add support to extend test configuration to handle dependencies and plugin settings

Authors

djangocms-helper was written by Iacopo Spalletti.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms-helper-0.1.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

djangocms_helper-0.1.0-py2.py3-none-any.whl (13.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file djangocms-helper-0.1.0.tar.gz.

File metadata

File hashes

Hashes for djangocms-helper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fbe50f756cebb652a5fb4b50e6fea27efc423f439224a2335d02ffbe45b2148b
MD5 a335a1cc9eed4ebf2f5a75da547f970b
BLAKE2b-256 4ac45edc19eefe736b80cfeb14564698a2e81ddb8b90c4f96c1cd4865afaf904

See more details on using hashes here.

File details

Details for the file djangocms_helper-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_helper-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f4f2ff12e7cf91ddf0912ff0bb8fd51611fc5a7175192579bb3a0b7793487389
MD5 317a5db2882c3d59bf1c1a8aab18d31c
BLAKE2b-256 55816607890efb283fd1c50c4c3743647cb6049f233980e2db142fe6612bcc6b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page