Cerin
Cerin

Reputation: 64799

Deploying Custom SQL Views with Django

I've written some custom PostgreSQL views, which I've wrapped with Django's ORM using the managed=False meta flag. What's the best way to deploy these views, so that running syncdb updates them in the database, and also that the views exist in the test database when I run unittests?

Upvotes: 0

Views: 763

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599788

With an initial SQL file.

Upvotes: 1

Related Questions