Re: MultiValueDictKeyError when accessing POST items

2009-01-22 Thread workingbird
"login_username" should be the attribute named "name", not "id". On Dec 23 2008, 11:03 am, DragonSlayre wrote: > I've created my own form: > > >   Login: >   Username: >   >   Password: >   >   > > > I am mappying /accounts/login/ to a view of mine, which is then > calling: > > if request.

Re: MultiValueDictKeyError when accessing POST items

2009-01-21 Thread Malcolm Tredinnick
On Mon, 2008-12-22 at 19:03 -0800, DragonSlayre wrote: > I've created my own form: > > > Login: > Username: > > Password: > > > > > I am mappying /accounts/login/ to a view of mine, which is then > calling: > > if request.method == 'POST': > username = request.POST['lo

Re: MultiValueDictKeyError when accessing POST items

2009-01-21 Thread esatterwh...@wi.rr.com
I've run into a similar problem, but am trying to submit the form with a text link and java script. The submit element is on the page, but hidden. and I get the same error: HTML -- http://media.muskegohitmen.com im

Re: MultiValueDictKeyError when accessing POST items

2009-01-21 Thread esatterwh...@wi.rr.com
HTML http://media.muskegohitmen.com/images/ siteLogo_sm.png"/> Username: Password: LoginForgot Password ?! # JS - there is a little mootools in there, but though that might be the problem so I used the document. to see if that would do it function hitmen

Re: MultiValueDictKeyError when accessing POST items

2008-12-23 Thread DragonSlayre
Cheers :) Damn, I must have been a bit tired coding that up lol Here's my working code (incase anyone else is as stupid as me): Login: Username: Password: On Dec 23, 4:23 pm, Malcolm Tredinnick wrote: > On Mon, 2008-12-22 at 19:03 -0800, DragonSlayre wrote: > > I've created

Re: MultiValueDictKeyError when accessing POST items

2008-12-22 Thread Malcolm Tredinnick
On Mon, 2008-12-22 at 19:03 -0800, DragonSlayre wrote: > I've created my own form: > > > Login: > Username: > > Password: > > > > > I am mappying /accounts/login/ to a view of mine, which is then > calling: > > if request.method == 'POST': > username = request.POST['lo

MultiValueDictKeyError when accessing POST items

2008-12-22 Thread DragonSlayre
I've created my own form: Login: Username: Password: I am mappying /accounts/login/ to a view of mine, which is then calling: if request.method == 'POST': username = request.POST['login_username'] I have no idea why I'm getting the error - "Key 'login_username' not fo