Thank you sir, that's what I was hoping to find! :)
Yours sincerely,
*Fábio Thomaz Molinar*
Em ter, 1 de jan de 2019 às 15:10, Florian Apolloner
escreveu:
> Hi,
>
> On Monday, December 31, 2018 at 12:38:31 PM UTC+1, Fábio Molinar wrote:
>>
>> Is this currently not
Hi,
I have a custom method on my model manager that allows me to listen for
notifications from modifications on the DB using postgreSQL. A short
version of this code looks like this:
def listen_for_notify(self):
import select
import psycopg2
import psycopg2.extensions
ur stack overflow post that I think answers your
> question: https://stackoverflow.com/a/53870659/1427135 . The database
> router can already do it :)
>
> On Thu, 20 Dec 2018 at 07:23, Fábio Molinar
> wrote:
>
>> Hi,
>>
>> I have a project with two apps (app1, app2).
Hi,
I have a project with two apps (app1, app2). App1's DB is the default DB.
App2's DB is DB2. To run the migrations on DB2, I need to run:
python manage.py migrate app2 --database=DB2
Which is ok. The problem is to run the migrations for the rest of the
project. I would like to run all migra