{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/3"}],"enrichment":{"capability":"Adds first-class PostgreSQL view support to Django's ORM, allowing you to define, manage, and query database views as Django models.","skillfed_tags":["django-extension","postgres-views","orm-integration"],"use_cases":["Create read-only aggregated or filtered views of your data that behave like queryable Django models without duplicating data.","Build materialized views to cache expensive query results and refresh them on demand or via signals when source data changes.","Manage complex SQL views alongside your Django models in migrations, keeping schema definitions in Python code.","Handle PostgreSQL-specific view dependencies and concurrent refresh patterns without writing raw migration operations.","Query views using the Django ORM (filtering, ordering, pagination) just like regular models, without raw SQL in application code."],"what_it_does":"django-pgviews-redux is a Django extension that brings PostgreSQL views into the ORM as first-class model-like objects. Instead of writing raw SQL or using database triggers outside Django, you define views by subclassing `pg.View`, specify the underlying SQL, and manage them through Django migrations just like regular models. The package handles view creation, updates, and deletion automatically during migrations, and provides a `sync_pgviews` management command for manual synchronization.\n\nIt supports both regular views and materialized views (which cache results for faster queries). Materialized views can be refreshed manually or via signals, and on PostgreSQL 9.4+ can use concurrent refresh to avoid blocking reads. The package also handles view dependencies, ensuring dependent views are created in the correct order, and provides utilities to drop and recreate views when upstream table columns change\u2014a common migration pain point.","worth_installing":"Yes, if you use PostgreSQL and need to manage views within Django's ORM and migration system. The package is actively maintained, supports current Django and Python versions, and has no known vulnerabilities. The main caveat is the unclear license status\u2014verify the actual license in the repository before adopting. Install friction is low and the feature set is well-documented."},"id":"django-pgviews-redux","links":{"html":"https://skillfed.io/packages/django-pgviews-redux","md":"https://skillfed.io/packages/django-pgviews-redux.md","pypi":"https://pypi.org/project/django-pgviews-redux/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-11","license_spdx":null,"license_treatment":"unclear","name":"django-pgviews-redux","python_support":"supports_current","summary":"Create and manage Postgres SQL Views in Django"},"popularity":{"monthly_downloads":234483,"position":9021,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
