How to query data using the build in Django functions in postgresql database?

125 Views Asked by At

I am wanting to query data using the build in Django functions on postgresql database. When the highlighted line of code runs, I get the following error: django.db.utils.ProgrammingError: can't adapt type 'SimpleLazyObject'. When I change the database settings to the default database, then the query runs with no problems. What is the solution? I want to use the build in Django functions (that is, Entry.objects.dosomething) on postgresql database. How can I do this?enter image description here

0

There are 0 best solutions below