django-pgviews icon indicating copy to clipboard operation
django-pgviews copied to clipboard

Use Django Database routing

Open GeorgeLubaretsi opened this issue 8 years ago • 5 comments
trafficstars

In our project we use multiple databases. They are chosen based on Model's app name.

Here's the documentation: https://docs.djangoproject.com/en/1.11/topics/db/multi-db/#using-routers

This change makes sure routers are taken into account when creating a connection

GeorgeLubaretsi avatar Nov 15 '17 18:11 GeorgeLubaretsi

Hi @GeorgeLubaretsi, thanks for this!

Are you able to pull together a test, or modify the tests, to demonstrate this working?

scott-w avatar Nov 16 '17 08:11 scott-w

Hi @GeorgeLubaretsi, I'd still like to merge this in. If you'd like some help putting a test case together, I'm more than happy to work through it with you =)

scott-w avatar Dec 22 '17 11:12 scott-w

Hey @scott-w I really don't have much time at the moment :( I'll try to come up with something over the next weekend

GeorgeLubaretsi avatar Jan 06 '18 12:01 GeorgeLubaretsi

Hi @GeorgeLubaretsi, no worries. Just keep me updated and I'll be happy to put some time aside to work with you.

scott-w avatar Jan 08 '18 09:01 scott-w

My fork now this supports this as of version 0.8.0. See https://github.com/mikicz/django-pgviews and https://pypi.org/project/django-pgviews-redux/.

mikicz avatar Nov 22 '21 13:11 mikicz