left join with and condition

2018-12-05 Thread Arnaldo Díaz Molina
Hello and thanks in advanced, I am using Django 1.11 ORM. I need to make this SQL query: SELECT model1.field1, sum(model2.field1), sum(model2.field2) FROM model1 LEFT JOIN model2 on model2.model1_id=model1.id and model2.date='2018-12-02' group by model1.field1 I have used annotations for this ki

Re: Databases configuration

2018-12-06 Thread Arnaldo Díaz Molina
Did you have installed the mysql driver??? Is your host localhost??? Did you have your mysql service started??? 2018-12-06 15:38 GMT+01:00, C. Kirby : > Did you start your mysql process? > > On Thursday, December 6, 2018 at 9:33:37 AM UTC-5, Cool Smith wrote: >> >> Hi everyone, >> >> I am new to D