https://github.com/idlesign/django-etc
Description
Tiny stuff for Django that won’t fit into separate apps.
Utils
etc.toolbox.get_site_url does its best to provide you with a site URL whether request object is available or not.
etc.toolbox.import_app_module imports and returns a module from a specific app by its name.
etc.toolbox.import_project_modules imports modules from registered apps using given module name and returns them as a list.
Models
etc.toolbox.InheritedModel allows to override fields attributes in inherited models.
etc.toolbox.get_model_class_from_string allows getting model class from its string representation.
etc.toolbox.get_model_class_from_settings allows getting model class from its string representation in settings module.
etc.toolbox.ChoicesEnumMixin helps to define choices for models using Enum from Python 3.
etc.toolbox.choices_list helps to define choices for models, that could be addressed later as dictionaries.
etc.toolbox.get_choices returns model field choices from a given choices list.
Admin
etc.admin.CustomModelPage allows easy construction of custom admin pages processing user input.
Forms
etc.toolbox.set_form_widgets_attrs allows bulk apply HTML attributes to every field widget of a given form.
Documentation
Metadata
Release files for django-etc 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-etc-1.4.0.tar.gz | 26.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_etc-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.4 kB
Release files / django-etc-1.4.0.tar.gz
| Download URL | django-etc-1.4.0.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa7dbcdba5d0dd3b42eac54463fe24a9e1202a1492ecbf50ed0bc1555074af8f
|
|
BLAKE2b-256 checksum How to use checksums |
7d3bc164f4edd0aa3f5026e15aaa982771c506c2d473bbee97bbf1b7e90aefc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.8
|
Release files / django_etc-1.4.0-py3-none-any.whl
| Download URL | django_etc-1.4.0-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61aee75a97ef868830260de86f2a69896992776c325624c46827c831101cbd9f
|
|
BLAKE2b-256 checksum How to use checksums |
91addbfcd9aeace88a9b34b88aac5ad17418bb982343c0c72cb95491527af910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.8
|
Security for django-etc 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.