lachesis: users can upload files over your static files
lachesis
nkuttler: i was called in to rescue a django 1.3 project
nkuttler
jtri: the cached staticfiles storage thing md5sums all your static files
estebistec has quit
webus joined the channel
lachesis
trying to bring it up to 1.6.2, and this has so far been my biggest hurdle - the old dev used media path everywhere
nkuttler
so fix it
i'd do incremental upgrades though, 1.4, 1.5, 1.6
jtri has left the channel
xsamurai joined the channel
nszceta has quit
hazzadous has quit
hotsyk has quit
yoyoohrho has quit
xsamurai
I have model Vote and model Review, after a vote is cast I would like to take the total likes - total dislikes and update the vote_status field on the review model, what would be preferred, post_save signal on Vote model or setting up a trigger on the db side ?
mstrcnvs joined the channel
nszceta joined the channel
preferred = speed and least amount of race conditions as the tables are rather large and have large amount traffic
nszceta has quit
nszceta joined the channel
benwilber has quit
gazumps has quit
ignite
xsamurai: why do you need to save the (total_likes - total_dislikes)? Why not a function in Vote that returns the difference?
dlogs joined the channel
Left_Turn
does the docs explain the hidden form field.. i can't seem to find it
xsamurai
ignite: I would like to sort reviews via the vote count, tables are rather large and doing a sort each time would be very expensive
yomilk joined the channel
plus I dont know if its possible to sort by function , unless I do it in the view ?
ticketbot has quit
rabbite joined the channel
Itkovian joined the channel
insejn joined the channel
but then again with such a large queryset that will likely causes lag