Skip to main content

A collection of useful snippets for enhancing or replacing functionality within Django

Project description

django-gubbins is a collection of useful snippets for enhancing or replacing functionality within Django. For more documentation, see the github page at https://github.com/carlio/django-gubbins

Automatic downcasting to model subclasses : This is for the case when you have a model hierarchy, with several models inheriting from a base class, and you want to query the base class but get instances of the subclasses out of the query set.

EnumField : provides an easy way to have a model field which only accepts some values, and at the same time makes it easy to reference those values in your code.

JSONField : allows you to store JSON strings in a database.

ReusableAppURLs : a simple way to create the correct URL configuration for a reusable django app.

SlowFileUploadHandler : can be used to really slow down handling of file uploads. This is an implementation of the Django file upload handler which will sleep between processing chunks in order to simulate a slow upload. This is intended for development when creating features such as an AJAXy file upload progress bar, as uploading to a local process is often too quick.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-gubbins-1.1.1.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file django-gubbins-1.1.1.tar.gz.

File metadata

File hashes

Hashes for django-gubbins-1.1.1.tar.gz
Algorithm Hash digest
SHA256 2b3b4352d2c84c8d7c13697af32f0986bae8ae638e7e8c1a3e3716d2a2ee2c24
MD5 267e32861dcc82d2116d00103c76bcb8
BLAKE2b-256 9a99917a3444af5322996f03a37a295b74bf00e8d2f4b19bc93183ebaba5a849

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page