alive876: sound like you want a channel like #frontend though
baconbeckons joined the channel
zxcv1729 joined the channel
ytsejam joined the channel
adsworth joined the channel
ytsejam
Hello , I have a question , I want to calculate the difference between start of the week and the day now ? is there an easy way ?
alive876 has quit
hop
ytsejam: date.weekday?
nkuttler
ytsejam: timedelta
daydreamm has quit
hop
.oO(how?)
ytsejam
datetime.datetime.today().weekday()
tvm_ has quit
hop
datetime.date.today().weekday() ?
ytsejam
hop yours did not work
hop
now we are just throwing around random method calls
nkuttler
.oO
hop
ytsejam: of course mine did work
an object of type [datetime.]date has a method weekday()
ytsejam
hop now it works , I tried both of them and in the firt time it did not work , I got an builtin method error , I think I tried to work it faster than save
thanks , I try to calculate a calendar table starting with monday and days table.
Francisco joined the channel
Fr4n has quit
hop
ytsejam: there is a calendar module in the standard library
I am confused :) I think it is time to stop working
I was checking django docs :)
thanks again
hop
n
np
CAPITANOOO joined the channel
CAPITANOOO has quit
nix64bit joined the channel
nix64bit has quit
Melamo joined the channel
MildlySeriousCat has quit
READ10 has quit
SuperSeriousCat joined the channel
kupi joined the channel
Nizumzen joined the channel
melamo joined the channel
rajesh has quit
iiie0 has quit
jezeniel joined the channel
Kangermu joined the channel
iiie0 joined the channel
ssv joined the channel
tdy has quit
hdost
Hopefully, but not so quick question. I am using a secondary File Storage backend, and I am hoping to mock out the backend. Is there a tried and true method to do the mocking. I found https://joeray.me/mocking-files-and-file-storag..., but it doesn't work great.
linurandy joined the channel
Or rather it doesn't seem to be working
dlam has quit
linurandy has quit
linurandy joined the channel
bradfordli123 joined the channel
ssv has left the channel
bradfordli123 joined the channel
amirpro has quit
amirpro joined the channel
rpkilby has quit
fission6 has quit
detseg joined the channel
baconbeckons has quit
katman joined the channel
eperzhand joined the channel
amirpro has quit
amirpro joined the channel
jezeniel joined the channel
Xard has quit
fnstudio joined the channel
adsworth has quit
tdy joined the channel
fission6 joined the channel
amirpro has quit
jonez has quit
amirpro joined the channel
eperzhand has quit
Haudegen joined the channel
eperzhand joined the channel
amirpro has quit
thiras has quit
felixx has quit
madsj has quit
tomasz2137 joined the channel
tomasz2137
Hi. I have a form in DetailView. How can I get pk of DetailView model in form?
dang`r`us
self.get_object().pk
baconbeckons joined the channel
fission6
knbk you around? i think i got my m2m in a good spot, now i am swapping out a bunch of add() logic
eperzhand has quit
tomasz2137
This form inherits from forms.Form and I got "unresolved reference self"
thiras joined the channel
sklv
how can i get the checked value of a booleanfield in an html template?
Kangermu has quit
currently I have {% if form.problem.value is True %}checked{% endif %} inside the input tag but it's not working
maks25 has quit
FlavioZ
Hello everyone, has anyone used Ansible to deploy a Django application? I am running an issue with env variables, which are being returned as None when running django_manage command. Any advice/help is more than welcome