franklyrosalind: let me read that again, wait a sec
JSharpe joined the channel
Haudegen joined the channel
kingarmadillo joined the channel
_DtM_ joined the channel
v4ult joined the channel
adw1n joined the channel
kingarmadillo joined the channel
_DtM_
Does anyone have any experience with multiplexing JsonWebsocketConsumers in Django Channels?
kingarmadillo joined the channel
fission6
moldy mcspud thats what i am doing but i recently had to go from every 200 requests to 40 requests, a few views are just eating to much memory, i still want to understand WHY memory is never released
shangxiao has quit
mcspud what kind of high volume process? how did you optimize it? where and how is it served?
kingarmadillo joined the channel
Oks4 joined the channel
aphelion_ has quit
mucco joined the channel
kingarmadillo joined the channel
moldy
fission6: well, look at what the views are *doing*
constructing thousands of model objects? can you use .values()?
nazarewk has quit
shangxiao joined the channel
fission6
gonna review that mold^ and possibly iterator
DebianTUX
franklyrosalind: i'm using that guy's code as base, i'm almost there
fission6
BUT i still dont get why uwsgi just either stays the same or grows in memory use
djosh joined the channel
Ryanar joined the channel
kingarmadillo joined the channel
DebianTUX
that should be part of django stack, i'm going to sugest that, as optgroup is a html5 element
ExoUNX joined the channel
xliiv joined the channel
kingarmadillo joined the channel
CrowX- joined the channel
thinkt4nk has quit
chicocvenancio joined the channel
CrowX-
When I use annotate with Case to add a field that depends on a state of other objects that have foreign key to current list of objects, if there are multiple objects of the foreign relationship, I get my original list with duplicates
and I can't use .distinct('id') cause I want the list sorted.
And sorting it in python is very slow
any suggestions?
ycon_ joined the channel
geojunkieSCI has quit
lanartri has quit
kingarmadillo joined the channel
iraj has quit
kingarmadillo joined the channel
jas02 joined the channel
ASTP001 has quit
greg_f joined the channel
kingarmadillo joined the channel
READ10 joined the channel
perplexa has left the channel
ASTP001 joined the channel
aphelion_ joined the channel
kingarmadillo joined the channel
lb1c
i have written a custom widget for my tags, based on the MultipleHiddenWidget https://dpaste.de/N3NF#L13 and render it in the browser with https://sean.is/poppin/tags which works awesome. however, if i clear out all tags, the return value of https://dpaste.de/N3NF#L13 is empty string '' but this doesn't get saved to the modelfield (tags = models.TextField(_('Tags'), blank=True, default='')). Instead the previous value is being kept. What do i
have to do in order to get the empty string get saved to the DB? all non-hidden widgets work fine?
SamSagaZ joined the channel
kingarmadillo joined the channel
sbasso has quit
encod3 joined the channel
kingarmadillo joined the channel
encod3 has quit
nazarewk joined the channel
AndrewGearhart joined the channel
ASTP001 has quit
rodolfojcj joined the channel
kingarmadillo joined the channel
iiie joined the channel
TriLuc joined the channel
franklyrosalind has quit
kingarmadillo joined the channel
LondonAppDev joined the channel
Silvering joined the channel
Itkovian joined the channel
kingarmadillo joined the channel
felixx joined the channel
lborda has quit
djapo joined the channel
lborda joined the channel
kingarmadillo joined the channel
_DtM_ has quit
ASTP001 joined the channel
TriLuc
Hello guys - i wonder if anyone could help me (or suggest a proper google searchterm). I am trying to create a relation between 2 models, ManyToOne, but with an extra: the remote model should have access to the former via 2 different reverse relations (maybe using custom managers for each reverse-relation). Can someone give me a hint on how to accomplish this? (an example kind of representing what i want
the method im writing is PacientUpdateSerializer, rest provided for extra info on the model
any help aprpeciated
yetitwo joined the channel
kingarmadillo joined the channel
TriLuc
@moldy: nice one :D but it would not support creating querysets like (fictive Store!) Store.objects.filter(pizzas__veggie_toppings__name__startwith="toma")
yetitwo
with third party libraries that require you to instantiate a client before making a request to something like an API, are those constructions typically expensive? I ask because I'm reviewing some code that instantiates the client each time a (fairly low-level) function is called and wondering if it makes sense to refactor so that the client behaves more singletonish
v4ult joined the channel
__marco has quit
djapo has quit
Itkovian joined the channel
otten2
im guessing i have to get the related "uporabnik" class and update it simultaneously