Group by using DJango ORM

2013-09-19 Thread Nicolas Mendoza
Actually what's the best way for do a group by using django ORM? I know workarounds like combinate "values" with "Anotate", etc. but I wil like know your favorite workaround without rawSQL and not manager based , only Django ORM ;-) Example.objects.values('type').annotate(dcount=Count('type')) .

Re: Receive parameter via post

2013-09-19 Thread Nicolas Mendoza
Here an example: https://gist.github.com/6625035 2013/9/19 Hélio Miranda : > Good. > I have my client application server, and was trying to send an id parameter > via a post like this: > $scope.deleteIMG = function(ID){ > $http({ > method: 'POST',, > url: "http://localhost:8080/onpitch/delImagePla