Skip to content

thorgate/tg-utils

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

tg-utils

https://github.com/thorgate/tg-utils/actions/workflows/python-package.yml/badge.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.
  • Mixin for making admin view read-only.
  • Decorator for annotating admin methods.
  • JS/CSS compressors for Django Compressor.
  • Health-check endpoints (with and without token authentication)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.