I am a bit surprised nobody talked about the development time of a micro-service type architecture, it's all good and stuff and intellectually satisfying but to be honest it's like twice the price and far from needed for 99% of projects
m2c
Akari__
ah you mean like separating the backend into discrete services for different categories of data and processes?
Lauxley
I mean on contrary to a monolithic architecture
Akari__
ah yeah
Itkovian joined the channel
well it depends also on your deployment strategy and network stack i'd imagine
Biwaa has quit
Lauxley
Akari__: if you are not starting from scratch yes
Lauxley has quit
jessamyn_ has quit
jessamynsmith joined the channel
casuallancelot joined the channel
Akari__ has quit
manifest joined the channel
al3n joined the channel
melhiors joined the channel
oblikoamorale has quit
manifest
any way to put data from multiple html/js text fields together into a single models.TextField()?
there might be other ways to do what i'm trying to do, like a form widget or something
casuallancelot has quit
foresmac-work joined the channel
foresmac-work
I need to override `from_db_value()` for a custom subclass of `BooleanField` (long story), but the docs say that built-in Fields don't use `form_db_value()`. Is there something else I can override to get the same effect?
Guard1an joined the channel
FinalAngel has quit
oblikoamorale joined the channel
fujii_ has quit
fujii joined the channel
fujii has quit
roger_rabbit joined the channel
eperzhand has quit
eperzhand joined the channel
I need to override `from_db_value()` for a custom subclass of `BooleanField` (long story), but the docs say that built-in Fields don't use `form_db_value()`. Is there something else I can override to get the same effect?
Biwaa joined the channel
drodger has quit
drodger joined the channel
duoi has quit
Biwaa has quit
mine0901 joined the channel
duoi joined the channel
dodobrain joined the channel
Diemuzi has quit
duoi has quit
mcspud has quit
duoi joined the channel
papna joined the channel
brunch875 has quit
papna
How am I supposed to have a production vs. staging vs. testing database with Django? Would I enter them as various databases in DATABASES and have a router to point to the right one? Should I template my settings.py at a higher level?
avakdh_ joined the channel
jtri has quit
si14_ joined the channel
Onionnion_ joined the channel
soren_ joined the channel
john2x joined the channel
EnTeQuAk_ joined the channel
piquadrat_ joined the channel
FinalAngel joined the channel
termie joined the channel
jbondhus joined the channel
CAPITANOOO joined the channel
mcspud joined the channel
john2x has quit
piquadrat has quit
Onionnion has quit
Subv has quit
heinrich5991 has quit
airstrik3 has quit
cybo_ has quit
wintrmute has quit
soren has quit
colinbits has quit
TraceEv has quit
barlas has quit
MrJmad has quit
avakdh has quit
EnTeQuAk has quit
si14 has quit
jtiai has quit
cybo_ joined the channel
Onionnion_ is now known as Onionnion
soren_ is now known as soren
EnTeQuAk_ is now known as EnTeQuAk
berto- joined the channel
piquadrat_ is now known as piquadrat
Subv joined the channel
Joost joined the channel
TraceEv joined the channel
airstrike joined the channel
jtiai joined the channel
hipertracker joined the channel
si14_ is now known as si14
maks25 has quit
maks25 joined the channel
maks25 has quit
heinrich5991 joined the channel
Haudegen has quit
fission6 joined the channel
mastizada joined the channel
ofek joined the channel
al3n has quit
ofek
in Django, each request gets its own thread or process?
omarek joined the channel
Wooble
ofek: that's not django's convern; depends on the wsgi server.
concern*
ozcanesen joined the channel
ofek
Wooble, do objects persist between requests? like the wsgi server would only load app once right?
mehola joined the channel
luffarvante joined the channel
omarek
Hi, I use this Javascript function for asynchronous pagination in my template. Do you have any idea how I could use translation for the selected lines ? https://dpaste.de/DfXX#L22,23
In general, is there any hope to make strings generated by javascript translated by Django ?
foresmac-work
@ofek No, they are scoped to the request IIRC
@omarek I don't see how that's possible, unless you're doing some kind of AJAX request to Django to handle that.
ofek
foresmac-work, I guess my ultimate question is can memory be shared between requests?
foresmac-work
omarek It's possible, but you shouldn't rely on that.
falk0n has quit
omarek
foresmac-work: As a matter of fact I'm doing an Ajax request in Django for pagination. Hopefully it's the last time I do that (way more complicated than I expected).
Writing part of page in Javascript made me appeciate Django.
Haudegen joined the channel
...maybe I could pass the translated snippet as data-translated-string
luffarvante
Hey, Im trying to save a form where i want some values to be set programaticaly, either to the form or on the actual model it uses to save to the database before save. Im wondering where the best place to do this is. Currently i set the data in the form_valid() function in the view. I understood this can also be done with middleware, is any method more/less valid? Or should i do it some other way?
foresmac-work
You'll want to use the `clean()` method on your form to do that generally
luffervante and/or use defaults for certain fields?
duoi has quit
luffarvante
foresmac-work: i use the default (or whatever 'auto_now_add=True' counts as) for the timestamp in the model, ill check out clean, thanks!