Common utils for Django-based projects.
Project description
tg-utils
Collection of various utils for Django-based projects.
This is code that we’re using in our projects at Thorgate and we’re hoping you’ll find some of it useful as well.
Free software: ISC license
Documentation: https://tg-utils.readthedocs.org.
Features
Model utils, e.g. timestamped and closable models, QuerySets that send out a signal when objects are modified.
Templated email sending.
Profiling utilities.
Unique filename generation for uploads.
Using hashids for models (instead of exposing primary keys).
System checks for email and Sentry configuration.
Mixin for easier implementation of ordering in Django’s generic ListView.
JS/CSS compressors for Django Compressor.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.5.0 (2019-02-07)
Added locking decorator. Thanks @iharthi
0.4.0 (2019-02-07)
Supported Django and Python versions are listed below
Django version |
Python versions |
Django 1.8 |
3.4, 3.5, 3.6 |
Django 1.11 |
3.4, 3.5, 3.6 |
Django 2.0 |
3.4, 3.5, 3.6, 3.7 |
Django 2.1 |
3.5, 3.6, 3.7 |
0.3.0 (2018-03-12)
Supported Django versions are now 1.8, 1.11, and 2.0. ClosableModel.created_by and closed_by now have on_delete=models.SET_NULL attribute.
Supported Python versions are now 3.4, 3.5, and 3.6.
0.2.0 (2016-01-27)
Rename tg_utils.yuglify module to tg_utils.compressor_filters and added new filters for using UglifyJS 2 and clean-css.
Added docs for tg_utils.compressor_filters module.
0.1.1 (2016-01-11)
First release on PyPI.
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 tg_utils-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da74ebd681015b4ef37759264dffe0c5f69821edc3fc0211426ce2aeba162ed4 |
|
MD5 | 4c50d98f441772289c7fdcbe6e4061ff |
|
BLAKE2b-256 | 8536651d0cba837fa65142736e21c1f57ba67a18aa8bc6dff36d0c778cc6a5a2 |