Skip to main content

A module to use Django ORM for storage with huey.

Project description

PyPI version license Donate


A module to use Django ORM for storage with huey

This project originally started because I wanted to just update huey-pg. That proved to be more of a full rewrite than just an update.

Anyway, I didn't want to use SqliteHuey, or FileHuey, since I already have a perfectly good data store in my Django project.

So, I took a copy of SqliteHuey, and re-implemented the class functionality using Django ORM.

Huey doesn't do anything too crazy, so it should work with any database backend supported by Django. We also don't use any non-standard Django stuff, so it should work with any modern Django version.


Install with pip

pip install huey-django-orm



Configure Huey to use DjangoORMHuey

from import DjangoORMHuey

HUEY = DjangoORMHuey()

or if you need other options

HUEY = {
    "...": "...",
    'huey_class': '',
    "......": "...",

Run Migrations

python migrate huey_django_orm

That's it! Now you can use Huey just like you normally would.


Since this project is specific to Django, and will likely never be used without it, you get a few Django goodies rolled right in.

  • Each Model has a ModelAdmin
  • There is an auto_now_add field in each model so we can see when an object was created within the admin
  • Ordering is defined at the model level, so objects will appear in the admin in the same way they will be processed.

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

huey_django_orm- (7.0 kB view hashes)

Uploaded Source

Built Distribution

huey_django_orm- (7.1 kB view hashes)

Uploaded Python 2 Python 3

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