My collection of things for working with Django.
Project description
My collection of things for working with Django.
Latest release 20241110: Initial PyPI release with DjangoBaseCommand, cs.cmdutils.BaseCommand subclass suppplanting django.core.management.base.BaseCommand.
Class DjangoBaseCommand(cs.cmdutils.BaseCommand, django.core.management.base.BaseCommand)
A drop in class for django.core.management.base.BaseCommand
which subclasses cs.cmdutils.BaseCommand.
This lets me write management commands more easily, particularly if there are subcommands.
Usage summary:
Usage: djangobase [common-options...] [options...]
A drop in class for `django.core.management.base.BaseCommand`
which subclasses `cs.cmdutils.BaseCommand`.
Subcommands:
help [common-options...] [-l] [subcommand-names...]
Print help for subcommands.
This outputs the full help for the named subcommands,
or the short help for all subcommands if no names are specified.
-l Long help even if no subcommand-names provided.
info [common-options...] [field-names...]
Recite general information.
Explicit field names may be provided to override the default listing.
shell [common-options...]
Run a command prompt via cmd.Cmd using this command's subcommands.
DjangoBaseCommand.add_arguments(self, parser):
Add the Options.COMMON_OPT_SPECS to the argparse parser.
This is basicly to support the Django call_command function.
DjangoBaseCommand.handle(*, argv, **options):
The Django BaseComand.handle method.
This creates another instance for argv and runs it.
DjangoBaseCommand.run_from_argv(argv):
Intercept django.core.management.base.BaseCommand.run_from_argv.
Construct an instance of cs.djutils.DjangoBaseCommand` and run it.
Release Log
Release 20241110: Initial PyPI release with DjangoBaseCommand, cs.cmdutils.BaseCommand subclass suppplanting django.core.management.base.BaseCommand.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cs_djutils-20241110.tar.gz.
File metadata
- Download URL: cs_djutils-20241110.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a472a7227b286b82e785ea87c5bfada1a530c4594dad78da2037cc4d80423d0
|
|
| MD5 |
64ad258789e3dfdc3fd8826b64ea93a0
|
|
| BLAKE2b-256 |
8add8d6bd08d97c5b3f00207e87d2c598a2b9388df93c83380dcfe58480ff2bd
|
File details
Details for the file cs.djutils-20241110-py3-none-any.whl.
File metadata
- Download URL: cs.djutils-20241110-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17e0a44d497f417383915eed36318757e0ec4c7f8dfaa0c99f2de18788153746
|
|
| MD5 |
ea12d4c6287605b2bc8f7849bca3d8e9
|
|
| BLAKE2b-256 |
10b70f9d5ab31cd2997048753dbb074551296a51dddfc1af10cbd001b3ad48fe
|