Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Sphinx plugin for help Django commands documentation.

Project Description

Sphinx Django Command

Add you Django Command’s help to your documentation. Just write:

.. djcommand:: myapp.management.commands.mycmd

And you’ll have:

Usage: manage.py mycmd [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit

Useful to keep DRY documentation between Sphinx and your command help.

Setup

Install with:

pip install sphinx-django-command

Be sure your Sphinx conf.py has access to the command that you want to document, the app could be found in sys.path and DJANGO_SETTINGS_MODULE is available if necessary.

Insert 'djcommanddoc' in the extensions parameter:

extensions = [
  ...
  'djcommanddoc',
  ...
]

Tests

Tests are stored in djcommanddoc.tests and for run them you must launch:

python djcommanddoc/tests.py

To run the tests across all supported versions of Django and Python, you can use Tox. Firstly install Tox:

pip install tox

To run the tests just use the command tox in the command line. If you want to run the tests against just one specific test environment you can run tox -e <testenv>. For example, to run the tests with Python3.3 and Django1.9 you would run:

tox -e py3.3

The available test environments can be found in tox.ini.

Release History

Release History

This version
History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sphinx-django-command-0.1.3.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 Source Aug 15, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting