If you are facing how to write query as Group By in django, this post might be helpful for you. Imagine that, you want to write query like this way. SELECT userid, COUNT(userid) AS ucount FROM members GROUP BY userid Now, in your view’s function, add- //import library from django to count record from django.db.models import Count [...]tisuchi
Spending time to write simplest PHP Code.
query as GROUP BY in django?1