How to import a .sql file file into Django models and query it

128 Views Asked by At

I have a single file with data in it with a .sql extension. I want to be able to query it and display results using Django Templates and Views. How do I even access it in my Django Project.

Anyone please

I have tried to create a server for the file using PostgreSQL and then connect my Django database to it. But I can’t seem to get around that.

0

There are 0 best solutions below