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.2.tar.gz (97.3 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.2-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_denorm_iplweb-1.12.2.tar.gz
  • Upload date:
  • Size: 97.3 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.2.tar.gz
Algorithm Hash digest
SHA256 5ff32ec58a2f183e0ba969370c83062bd2d39e539f043083fb808e761a06c285
MD5 2351f736379429f4063e4578fa62737f
BLAKE2b-256 d92c172efaa431f4e899d46d1d459bdd2e04b0fb80276a5031a7fd86fa8daf8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_denorm_iplweb-1.12.2-py3-none-any.whl
  • Upload date:
  • Size: 78.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f6335e7b72f5a4dafebdd829ae6b76c828a43cd31ac9e197d67c197f2600d82
MD5 ca689e8e894cfb86b0a21338295818fc
BLAKE2b-256 fd87f4e9e2a2ff22235d0589b73f46ccf9bc96f3baac490ede52fdc3b37a6e41

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