I have a Django 1.8 application with a PostgreSQL database. I run django inspectdb from the command line to test models for views, but the views do not appear in the model output file.
Here's the output of the version:
17:36 $ python well/manage.py --version 1.8.2
And here is what psql sees:
\dv List of relations Schema | Name | Type | Owner --------+-------------------------------+------+--------- public | hospitalizations_over_30_days | view | dwatson public | interval_30_days | view | dwatson (2 rows)
From the django 1.8.2 documentation:
New in Django 1.8: A feature to inspect database views was added. In previous versions, only tables (not views) were inspected.
How can I get PostgreSQL views to output to Django 1.8.2 inspectdb?
source share