AntelopeSalad: Right, exactly. And that's perfectly achievable with models and methods. I mean, you could swap the model out with a dictionary and the template wouldn't have to care.
I am working on a tutorial and this problem keeps coming up
did I provide enough information?
mattmcc
{$ crsf_token $} should be {% csrf_token %}
karim has quit
ryanhiebert
I wrote an auth backend that works... except both in the view that authenticates and logs in, and the redirect chain that the view triggers, the user isn't in the request. Do I need to manually put the user in the session? Shouldn't the redirect cause the middleware to put it in the session, like it does on subsequent requests?
Sam99
on the template?
mattmcc
Yeah.
alexsnake has quit
ryanhiebert: Assuming you're using the default auth middleware and login view, you should be fine.
Sam99
I corrected that
hoot has quit
but still have same error message
ryanhiebert
I'm using a particularly different authentication, so I've written my own login view. Default auth middleware
HowardwLo
mattmcc: how would you go about removing the non ascii slash and replacing with regular slash?
ryanhiebert
or rather, I'm using a different view to do this _kind_ of login
I use the default login view elsewhere
mattmcc
ryanhiebert: So I'd compare your view to what the default login view does, and see what's missing.
HowardwLo: Well, since it doesn't normalize, you're probably stuck just doing a replace()
ryanhiebert
ok, that sounds like a good idea. thanks for the pointer
riseriyo has quit
jhgaylor joined the channel
HowardwLo
right, i have that now. the replace is throwing me an error. saying how no encoding is declared
Sam99
mattmcc, did you see my response, I made that change but still am getting the same error message
estebistec has quit
envisean has quit
alexsnake joined the channel
livingstn joined the channel
livingstn has quit
livingstn joined the channel
Laybunz has quit
EyePulp joined the channel
munichlinux has quit
Mattmcc, are you still here?
ctcg joined the channel
billcd joined the channel
willingc joined the channel
munichlinux joined the channel
Can anyone help me with a CSRF problem?
coddingtonbear is now known as coddingtonbear_a
munichlinux has quit
billcd has quit
immerser has quit
Siecje has quit
billcd joined the channel
rgenito has quit
Does anyone know enough about the CSRF to help me with a problem on a tutorial?