django-click is a library to easily write django management commands using the click command line library.
- Free software: MIT license
- Documentation: http://django-click.rtfd.org
pip install django-click
Create a command module as you would usually do, but instead of creating a class, just put a djclick command into it:
import djclick as click @click.command() @click.argument('name') def command(name): click.secho('Hello, {}'.format(name), fg='red')