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.1.tar.gz (132.0 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.1-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_denorm_iplweb-1.12.1.tar.gz
Algorithm Hash digest
SHA256 bfce41d5e31ce09e1c0fff2f0296ac3b3e1d65cad21517e18f0ef6f991d3ee1d
MD5 e48b076c2233b2393b2b045d0228c738
BLAKE2b-256 23257599dbd6230198616ca954b04dd0de55293af25817a7403f81d538509e5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_denorm_iplweb-1.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62e77b5977effa77def6180854b3a552ed5a699adb35b5b03ce8774d181a7bb7
MD5 a4f3a74370ceba4c3187e3da6cde19a8
BLAKE2b-256 b6e7525825fe22d1d93e263c5cdc3498a8b571c3b067d5146a27f8d16d80e1d9

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