django-click icon indicating copy to clipboard operation
django-click copied to clipboard

Write Django management command using the click CLI library

Results 9 django-click issues
Sort by recently updated
recently updated
newest added

When either sending a `SIGINT` or using `raise click.Abort`, I would expect the application to shut down cleanly with the appropriate error code. Instead, I get the following stack trace:...

Hi and thanks for maintaining this convenient library. It really makes our management commands look a lot cleaner. What's missing for us at the moment, though, is typing annotations, since...

I am usually using Typer on top of Click for command line. This gives a nice way to use Type hints to define variables. https://typer.tiangolo.com How complex do you think...

I'm trying to call a djclick based management command using the traditional Django API, `django.core.management.call_command` and I'm getting this traceback: ``` Traceback (most recent call last): File "_log.py", line 34,...

Assuming we have a command named `foo`... ``` import io buffer = io.StringIO() from django.core.management import call_command call_command("foo", stdout=buffer) out = buffer.getvalue() assert "whatever" in out ``` This is not...

The following script works with the base `click` library but raises an exception with the `django-click` library. ``` import djclick as click @click.command() @click.argument("name", help="Some name") def command(name): click.echo(f"Hi {name}!")...

Django commands by default support the options `skip_checks`, `stderr`, and `stdout`. However, `django-click` commands do not. This incompatibility with the basic command contract causes problems particularly in testing.

I migrated a project using django-click from Django 1.9 to Django 2.2 In Django 1.9 the following command worked: ```python @click.command(help='Mailer send mail') @click.argument('schema_url') @click.argument('token') @click.argument('subject') @click.argument('body') @click.argument('to', nargs=-1) def...

Links in README and on PyPI link to ReadTheDocs, but it 404s.