you can create helper functions if the data retrieval is non-trivial
tulioz joined the channel
remember, only one view is being executed at a time
brunch875 joined the channel
fivethreeo has quit
Rembane joined the channel
Rembane
Hi! When I use annotations with Case(...) I get the double amount of returned objects where the Case returns a True, (and a False). This is the annotation: http://dpaste.com/2X3CD6Q
Biwaa has quit
How do I make sure that I only get the True object back when there is a True?
jessamynsmith: How would the helper function look like?
carloratm
any hint for debugging ?
jessamynsmith
ovalseven8: it would contain whatever code is duplicated
if the only line is Thesis.objects.all() it probably isn't worth it
but if you are doing some filtering over and over it is
not_a_web_devbot
carloratm: Does your View have the attribute template_name set?
ovalseven8
jessamynsmith, But where would I put this function?
cmheisel joined the channel
carloratm
not_a_web_devbot: niet
not_a_web_devbot
carloratm: That would be the issue then. Without defining template_name, your View doesn't know which template to render with.
sol1x has quit
carloratm
not_a_web_devbot: ok, thanks
not_a_web_devbot
carloratm: Glad to help! Good luck with your project.
DrYockel1 joined the channel
jessamynsmith
ovalseven8: up to you, really. wherever it makes sense: in views, on the model, in a file of helpers, etc
ovalseven8
jessamynsmith, Thank you
chrisw joined the channel
_mirak_ joined the channel
ovalseven8 has quit
adsworth joined the channel
woltman joined the channel
phenicie has quit
brunch875
I deleted a field on one of my models
_mirak_
Hi guys! I have a backend developer work process organization question. The client provides not compiled sources for frontend and I never used nodejs before. I tried to compile them by myself with no luck. Tried different versions of nodejs. What should I do in this situation? Should I ask designer for compiled sources?
brunch875
./manage.py makemigrations application complains of "Unknown field"
what could be causing this?
jessamynsmith
_mirak_: ideally they'd give you good instructions
Debnet joined the channel
flobin has quit
danizen joined the channel
mreznik has quit
raijin joined the channel
phenicie joined the channel
brunch875
hurhur nevermind, I was using that field on a modelform
_mirak_
What is the common working process between backend and frontend developers. Is it common practice for backdev compile frontend from nodejs?
johnnypyve joined the channel
dodobrain has quit
z0ran has quit
moldy
just tell them you don't know nodejs and ask them for reproducible instructions
nobody knows every tool out there, especially not with the speed at which frontend tooling is changing
_mirak_
ok, my question must be looks for answer like: as many opinions as there are people. I should go for some cup of coffee
And talk to client
Thanks anyway
tulioz joined the channel
_mirak_ has left the channel
rkj joined the channel
brunch875
Is that what corporations do nowadays? Rotating the frontend all the time?
If only more websites used html5+CSS+a touch of javascript, my phone wouldn't freeze when opening funnay maymay gifs
mucco has quit
not_a_web_devbot has quit
mucco joined the channel
gkahn joined the channel
FASDFSF has quit
tulioz has quit
kezabelle has quit
FASDFSF joined the channel
tsukasa_ has quit
Mask777 has quit
tsukasa_ joined the channel
cmheisel has quit
tompaw joined the channel
erickgnavar joined the channel
johnnypyve has quit
OtherAllan joined the channel
not_a_web_devbot joined the channel
bradfordli123 joined the channel
jaddison joined the channel
andrkavr joined the channel
felixx joined the channel
Greench joined the channel
fivethreeo joined the channel
fivethreeo
gcbirzan: sentry works great :)
mitaka has quit
Seaninho has quit
spacecadetbrown has quit
jas02 joined the channel
ShreshthaBot joined the channel
romich joined the channel
username1 joined the channel
thaxy joined the channel
FeersumEndjinn has quit
tulioz joined the channel
anunaki joined the channel
anunaki
;q
jas02 joined the channel
anunaki has left the channel
anunaki joined the channel
Taikibansei has quit
anunaki has quit
greg_f has quit
vrialland has quit
tulioz has quit
Muchoz joined the channel
fefa2k has quit
bullicon joined the channel
tulioz joined the channel
jas02 joined the channel
dsea joined the channel
elnygren has quit
romich has quit
queso joined the channel
queso
How long will Python 2.7.x be supported?
tchalla joined the channel
jeanba joined the channel
zetab
queso: 1.10 is last version if i remember correctly
queso
Okay, thank you.
tulioz has quit
hamub has quit
zetab
The Django 1.11.x series is the last to support Python 2. The next major release, Django 2.0, will only support Python 3.5+.
1.11 is last
hamub joined the channel
thaxy has quit
not_a_web_devbot
zetab: What page tells this information on django's site? I'd like to pass this info along to my organization, since we've been using 1.7 and 1.4(!!!) for a long time now.
tulioz joined the channel
XofP joined the channel
bwmbrown joined the channel
__marco has quit
__love__
but since 1.11 is LTS, it'll support Python 2.7 for the next 3 years