Running a Model.objects.raw() method with a pre-made query from
the DBA of my company, I was keep facing below error.
<database error - Programming Error : relation does not exist.>
Even though I have the correctly named table in my database!
Does the 'relation' in this error indicate other than the table in connected DB?
The output of raw query I used is correctly matching to the Model field.
(It uses several union all command referencing the tables which are not defined as django model though.)
Currently I just gave up using raw query of joining many tables
as a base of Django model data though.
I found a possible substitution for that is cursor.callproc() calling same data as DB function, but still cannot use it as a base data for Django model.
Please help.
Thanks.