Django Utils is a module with some convenient utilities not included with the standard Django install
Project description
Travis status:
Coverage:
Django Utils is a collection of small Django helper functions, utilities and classes which make common patterns shorter and easier. It is by no means a complete collection but it has served me quite a bit in the past and I will keep extending it.
Examples are:
Enum based choicefields
Models with automatic __str__, __unicode__ and __repr__ functions based on names and/or slugs using simple mixins.
Models with automatic updated_at and created_at fields
Models with automatic slugs based on the name property.
Iterating through querysets in predefined chunks to prevent out of memory errors
The library depends on the Python Utils library.
Documentation is available at: http://django-utils-2.readthedocs.io/en/latest/
Install
To install:
Run pip install django-utils2 or execute python setup.py install in the source directory
Add django_utils to your INSTALLED_APPS
If you want to run the tests, run py.test (requirements in tests/requirements.txt)
Links
- Documentation
- Bug reports
- Package homepage
- My blog
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
Hashes for django_utils2-2.5.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6f8215dc32fcb275fb89b9114531d0e9ffe135c22ac6b67762846aa6d8aaa3e |
|
MD5 | b31bfb460c218997233e8bf0f1549e44 |
|
BLAKE2b-256 | dea1f620b6a17ab00d53b2478cf6947b68d0a7b030f8b32a5b2a7a27578b028f |