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.
Metadata
Release files for cs-djutils 20241110
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs_djutils-20241110.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cs.djutils-20241110-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / cs_djutils-20241110.tar.gz
| Download URL | cs_djutils-20241110.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a472a7227b286b82e785ea87c5bfada1a530c4594dad78da2037cc4d80423d0
|
|
BLAKE2b-256 checksum How to use checksums |
8add8d6bd08d97c5b3f00207e87d2c598a2b9388df93c83380dcfe58480ff2bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.6
|
Release files / cs.djutils-20241110-py3-none-any.whl
| Download URL | cs.djutils-20241110-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17e0a44d497f417383915eed36318757e0ec4c7f8dfaa0c99f2de18788153746
|
|
BLAKE2b-256 checksum How to use checksums |
10b70f9d5ab31cd2997048753dbb074551296a51dddfc1af10cbd001b3ad48fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.6
|