tisuchi

Recent Posts


Archives


Categories


tisuchi

Spending time to write simplest PHP Code.


GROUP BY in django1

How to query as GROUP BY in django?

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 [...]

tisuchitisuchi