I'm trying to make a raw query on Django, here is what i tried:
Summary = myTable.objects.raw("SELECT FROM_UNIXTIME (unixtime, '%Y/%m/%d') AS ndate, count(id) AS query_count FROM myTable GROUP BY ndate ORDER BY query_count DESC")
The problem is that i keep getting the following error: TypeError: not enough arguments for format string
What is the problem here? If i execute this query on MYSQL, it will work. Any advice is appreciated!