Skip to main content

Denormalization magic for Django

Project description

https://github.com/mpasternak/django-denorm-iplweb/actions/workflows/tests.yml/badge.svg

django-denorm-iplweb is a Django application to provide automatic management of denormalized database fields.

This is a fork of original package, that went by name of django-denorm . This fork should bring original package to the latest Django/Python versions. Also, support for pretty much anything that is not PostgreSQL was dropped.

Supported versions:

Django 5.2 LTS

Django 6.0

Python 3.10

Python 3.11

Python 3.12

Python 3.13

Licensed under the BSD 3-Clause license.

Requires Celery.

Reasons for this fork being PostgreSQL-only:

  • lack of resources for maintaning other backends,

  • usage of LISTEN/NOTIFY mechanisms, available in PostgreSQL,

  • many more improvements, for example the ability to run multiple instances of cache rebuilder (see docs)

Patches welcome!

Dirty instances view

The package ships with an optional view that displays the current number of DirtyInstance rows grouped by content type — useful for monitoring the denormalization queue from a browser instead of running ./manage.py denorm_show_dirtyinstances_count over SSH.

Wire it into your project’s URLConf:

# urls.py
from django.urls import include, path

urlpatterns = [
    ...
    path("denorm/", include("denorm.urls")),
]

The view is then reachable at /denorm/dirty-instances/ and via reverse("denorm:dirty_instances_count").

Access policy is controlled by the DENORM_DIRTY_INSTANCES_VIEW_ACCESS setting (default: "staff"):

  • "staff" — only users with is_staff=True (uses staff_member_required).

  • "authenticated" — any logged-in user (uses login_required).

  • "public" — no access control. Only enable this behind your own network-level protection; the page leaks model names from your project.

Example:

# settings.py
DENORM_DIRTY_INSTANCES_VIEW_ACCESS = "authenticated"

Documentation is available from http://django-denorm-iplweb.github.io/django-denorm-iplweb/

Issues can be reported at http://github.com/mpasternak/django-denorm-iplweb/issues

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_denorm_iplweb-1.12.0.tar.gz (89.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_denorm_iplweb-1.12.0-py3-none-any.whl (67.5 kB view details)

Uploaded Python 3

File details

Details for the file django_denorm_iplweb-1.12.0.tar.gz.

File metadata

  • Download URL: django_denorm_iplweb-1.12.0.tar.gz
  • Upload date:
  • Size: 89.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for django_denorm_iplweb-1.12.0.tar.gz
Algorithm Hash digest
SHA256 6ea05d79eff4cd4b95883bbb4fa2a4b1fd8284c7c995a651fc06e171fff5496a
MD5 307427c5c05eaaa6263d1ae3b25bed81
BLAKE2b-256 7f1c6f85f4f02566a88bedf65c884d0d838638969344b59adedfa08533ba0f3c

See more details on using hashes here.

File details

Details for the file django_denorm_iplweb-1.12.0-py3-none-any.whl.

File metadata

  • Download URL: django_denorm_iplweb-1.12.0-py3-none-any.whl
  • Upload date:
  • Size: 67.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for django_denorm_iplweb-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae64b9470148540324535e2e20df8e415407421bf8a89454da69952cef7c2327
MD5 1b9ea8c7c5209c35fe8472732535e1a7
BLAKE2b-256 144fa0d2b4f3c03010f00fa7ff53cf83a26e4f3c89e9e3a805e53888b2810929

See more details on using hashes here.

Supported by

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