Skip to content

Tag: django

How to use sql statement in django?

I want to get the latest date from my database. Here is my sql statement. It works in my database. But how can I use it in django? I tried these codes but it return error. These code are in views.py. Version 1: Error: Version 2: Error: I’ve defined reg_date at beginning of the class. What should I do fo…