Common utils for Django-based projects.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
tests
tg_utils
.editorconfig
.gitignore
.travis.yml
AUTHORS.rst
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
Makefile
README.rst
pytest.ini
requirements_dev.txt
requirements_test.txt
setup.cfg
setup.py
tox.ini

README.rst

tg-utils

https://travis-ci.org/thorgate/tg-utils.svg?branch=master Documentation Status

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.

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.