although google indexing seems to bring up irrelevant pages for search terms at times
Y04NN has quit
kaakku joined the channel
superflat joined the channel
fleetfox
shangxiao: it doesn't make it less annoying
shangxiao
and you're telling me because?
fleetfox
because you told me to prefix my searches
shangxiao
i thought i'd lend at least some assistance and you try to want to start a fight
workbean has quit
olrrai has quit
fleetfox
did i came off hostile? sorry, that wasn't directed at you.
celefthe joined the channel
hamub has quit
Haliucinas has quit
FreedomFighter has quit
stickperson has quit
shangxiao
meh probably more my misunderstanding then
anyhoo that's what i do, created a chrome search shortcut with it
makes sure to return pages for 1.10 then too
t0n1c2 has quit
jessamynsmith joined the channel
bx2 joined the channel
scruz joined the channel
scruz
hello. having a bit of trouble wrapping my head around aggregation based on time. say i have a model, Report, with a created field and a births field. how can i get the number of births in a month?
sorry, per month, not births in a month
FunkyBob
first you need to annotate with the month of each record
then aggregate on that
jessamynsmith has quit
so "births" is number of births in the report?
bx2 has quit
scruz: ?
celefthe has quit
scruz
yes
Lenz joined the channel
FunkyBob
so Report.objects.annotate(month=F('date__month')).values('month').annotate(Sum('births'))
I think
you might need to use a transform, instead, to get month from F
from date
sebastian-w has quit
keimlink joined the channel
nimomo joined the channel
scruz
FunkyBob: thanks
Bryson has quit
Bryson joined the channel
sebastian-w joined the channel
ieatkittens joined the channel
sieve
Is Django working with python 2.6.9?
FunkyBob
no
not for some versions now
sieve
FunkyBob: oops
FunkyBob
given py 2.7 game out over 6 years ago
what crappy distro are you on that has only 2.6?
s/game/came/
sieve
SLES 11.4
sebastian-w has quit
FunkyBob
can't move to 12?
sebastian-w joined the channel
sieve
I just started a project with a very large european logistics company
FunkyBob
then I'd be looking for py2.7 or 3.5 RPMs for sles
ieatkittens has quit
sieve
FunkyBob: nah. You cant replace the native python.
FunkyBob
you don't
python is happy to have multiple versions on the system at once
fleetfox
everytime it's something with enterprise in name it's ancient
FunkyBob
enterpricey
fleetfox
we want enterprise but we don't want to pay for upgrades and maintenance :)