I'm guessing I misunderstood as I was expecting responses to intercept the requests environment
domino14_ joined the channel
Koterpillar
you are calling it wrong
morenoh149
requests is still dialing out to the internet
Koterpillar
you are calling responses.add wrong
DLSteve joined the channel
earlier: "read the docs of responses for the exact calls, but this should be correct _in spirit_"
Dockit1 has quit
Pedro joined the channel
Pedro is now known as Guest2368
X-virus has quit
CtrlC joined the channel
whaack has quit
bayman joined the channel
domino14_ has quit
domino14_ joined the channel
lorddaedra joined the channel
retailify joined the channel
cnk has quit
the_rat joined the channel
CtrlC has quit
retailify has quit
tremby joined the channel
CtrlC joined the channel
TakinOver joined the channel
tremby
It's my first Django project. I'm having issues with localization. I want to use language codes with regions. Some part of the docs say they should look like en-ca, other parts say en_CA, and other resources sometimes show en-CA. I can't get any combination of LANGUAGE_CODE setting and .po file path to work except LANGUAGE_CODE='en' and using a 'en' directory. I've tried LANGUAGE_CODE='en-ca' and calling the directory 'en-ca' and it no longer
I think there must be something fundamental I'm not getting
the_rat has quit
I've tried various other combinations like 'en-ca' setting (LANGUAGE_CODE docs have it listed this way) and 'en_CA' directory (localization docs have it listed this way) but no lock
suck
luck
wow lack of sleep
Poppabear joined the channel
PtxDK has quit
sprix joined the channel
grimel has quit
PtxDK joined the channel
mehola joined the channel
roflmyeggo joined the channel
chxan3 joined the channel
fuzzybear3965 has quit
morenoh149
the django model layer is the ORM right?
mattmcc
Yeah.
chxane has quit
fnstudio has quit
roflmyeggo has quit
royendgel has quit
roflmyeggo joined the channel
CtrlC has quit
fuzzybear3965 joined the channel
aristippos joined the channel
aristipp_ has quit
ubuntu_aze joined the channel
chau joined the channel
sprix has quit
roflmyeg1o joined the channel
workbean has quit
keltvek has quit
iraj has quit
OtherAllan has quit
roflmyeg1o has quit
roflmyeggo has quit
surfnturf_ has quit
WeiJunLi joined the channel
tremby
It turns out with regard to my question above that it's because neither en_CA nor fr_CA are languages which Django ships with. I had to set the LANGUAGES setting with those in it. LANGUAGE_CODE is now set to 'en-ca' and the translation directory is 'en_CA' and things work.
amcorreia has quit
pilne has quit
WeiJunLi_ has quit
morenoh149
tremby: 🍭
DLSteve has quit
roflmyeggo joined the channel
pilne joined the channel
CtrlC joined the channel
jenslarsson joined the channel
amcorreia joined the channel
drkfdr has quit
eperzhand has quit
eperzhand joined the channel
Zerk__
anyone for a quick question ?
Koterpillar
Zerk__: if it was quick, you would have asked it already ;)
roflmyeggo has quit
bobbymcghee has quit
bobbymcghee joined the channel
asheinfeld joined the channel
Zerk__
what d be the best way to create a team and have users join only 1 team?
audio joined the channel
i was thinking i should create a team model and add a fk to the user model but not sure
jessamynsmith
user should have an fk to team, I'd think
if users can only be on one team
asheinfeld has quit
aristipp_ joined the channel
mattmcc
Yep.
hutch34 joined the channel
karim_ has quit
aristippos has quit
morenoh149
how would I bypass the django orm? can't find it in the docs
WeiJunLi has quit
mattmcc
morenoh149: Er, simple. Just don't use it. What are you actually trying to do?
morenoh149
bypass it
ah RawSQL
mattmcc
Using RawSQL certainly isn't "bypassing" the ORM, it's literally a feature of the ORM.
jessamyn_ joined the channel
ubuntu_aze has quit
retailify joined the channel
tremby
Is there some way I can give me language files names other than django.po? I'd like to split into multiple files if I can, but they don't seem to get picked up unless they're called django.po