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
File details
Details for the file django-utils2-2.3.0.tar.gz
.
File metadata
- Download URL: django-utils2-2.3.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60912272e25c7edd66bf8094fe0a50e235089d06b6af6235d138612a71953531 |
|
MD5 | 1ed9141c2e5b4df02e4e0aec3bb4f12f |
|
BLAKE2b-256 | ef1d4e684b2abc948c1f6d90f37032728eb042f1663b61ea8771b0b8ddcb72f1 |
File details
Details for the file django_utils2-2.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_utils2-2.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f485fe4a154c38a9cb75046532416523ed8ee46e5b8c5168c250a281c38ad0f |
|
MD5 | 1c322c1e9710d4e4ecf716a1d9689db7 |
|
BLAKE2b-256 | a098649750a0dbe0ce57e65243ddd32851402c08281d7b2d775f31db5b045d0f |