FunkyBob: you gave me the right hint! Actually the line would be like this: myclient.post('/logout/', {}, HTTP_AUTHORIZATION='Token 7753b87a72832dd8c35a7550e5a498cc365a5443')
thank you!
delgiudices joined the channel
I read the Django test client docs, but I misunderstood the given example
jhfisc has quit
Is it Ok to assume that http headers are always sent in uppercase and starting with 'HTTP_' ??
at least to assume it when using django test client ?
hutch34 has quit
FunkyBob
yes, it's ok... because we still haven't shrugged off the shackles of CGI :(
bsically, you pass that stuff in the same format as it will appear in request.META
rodolfojcj
ookk!
jtiai^ joined the channel
thanks a lot FunkyBob! Now I can end my end with a small victory :)
* end my day
FunkyBob
huzzah!
we just went through a trial approval process for our MVP
I've already fixed all the bugs uncovered
before the meeting even finished :P
sphrak
Neat FunkyBob :D
FunkyBob
did I mention I realy like how django-nap has turned out? :)
busla joined the channel
cyphase joined the channel
sphrak
you committed some token example yesterday iirc?
busla has quit
sms
Funky going HARD
jtiai^ has quit
FunkyBob
sphrak: ok, nap-token-auth ? not sur why I called that nap :P
it's in no way restricted to django-nap
we used it to deal with CORS stupidity in IE
sphrak
FunkyBob: yes :)
FunkyBob
could not get the magic recipe to make it post cookies... so we sent an Auth bearer token instead
Anyone have any guidance on how to handle storing recurring scheduled tasks? Espeically with regard to daylight savings and not getting an hour ahead/behind when that happens. I realize that this may be a quite involved topic so a link may be the best answer... i haven't been able to find anything particulary useful on my own
jessamynsmith
wedgie: I'm not quite sure I know what you mean. I use cron to schedule tasks.
mcspud
wedgie - anything that is UTC timezone aware will automatically update the timestamp so you should be fine
wedgie
jessamynsmith: well, these would be events that a user schedules. For example, send a reminder every day at 8am. I don't want to convert to UTC and store that way becuase when a daylight savings transition occurs, it'll be an hour off
mcspud
wedgie - based on that, you can set recurring tasks with celery that follow a schedule based on the systime, which should be timezone aware
spacecadetbrown joined the channel
wedgie
mcspud: well, it doesn't matter what the system's local time is, it will matter what the user's local time is.
mcspud
literally the entire point of timezone aware to make time consistent across changes like daylight sayings
wedgie
so it kinda feels like it should be stored in the user's local time... but that sounds like it has it's own issues
mcspud
saving*
jessamynsmith
I'm pretty sure you want to save it in UTC and also save what the user's timezone is
wedgie
mcspud: quite new to django so maybe i'm overthinking things. Is there some magic built in that just handles this stuff?
mcspud
yes, UTC timezones
^_^
wedgie
what do i need to google to read up on that?
mcspud
How are you going to schedule your tasks?
wedgie
heh, that's what I'm trying to decide. In the very early planning phase so i'm VERY open to suggestions :)
mcspud
celery is the most commonly used django task runner