On Tue, Jun 2, 2009 at 9:42 AM, gsnyder2007 wrote:
>
> Had the same issue and the info below allowed me to resolve the issue,
> i.e. is_valid() is now returning True on a valid username/password
> combination. Seemed to me that the key was setting the test cookie and
> assigning the POST data int
Had the same issue and the info below allowed me to resolve the issue,
i.e. is_valid() is now returning True on a valid username/password
combination. Seemed to me that the key was setting the test cookie and
assigning the POST data into the 'data' variable. The former makes
sense to me. The latte
Figured it out by looking at how the admin view using
AuthenticationForm:
In POST:
loginForm = AuthenticationForm(data=request.POST)
note the use of data= which I have not seen before
in GET:
loginForm = AuthenticationForm(request)
request.session.set_test_cookie()
note the passing
For the record, I am seeing the same problem. request.POST contains
the correct values for
username and password, yet is_valid returns false and the form does
not include any error messages.
I haven't gotten to the bottom of it yet but AuthenticationForm is not
calling the clean() method.
And I
On Thu, Mar 26, 2009 at 12:26 PM, Adam Yee wrote:
>
> {{ error }}
>
> {{ form.as_p }}
>
>
>
form.as_p ought to be showing the errors on the form. So I'm puzzled by how
is_valid could be returning False but no errors are being displayed.
> Guessing is sometimes all one can do after analyzin
On Mar 25, 6:27 pm, Karen Tracey wrote:
> On Tue, Mar 24, 2009 at 2:11 PM, Adam Yee wrote:
> > So, I now pass the bound form, but still no validation error messages
> > show up. More importantly, is_valid is still returning false even
> > when I try logging in as a super user. I also removed c
On Tue, Mar 24, 2009 at 2:11 PM, Adam Yee wrote:
> So, I now pass the bound form, but still no validation error messages
> show up. More importantly, is_valid is still returning false even
> when I try logging in as a super user. I also removed checking for
> is_active since the AuthenticationF
On Mar 23, 8:30 pm, Karen Tracey wrote:
> On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee wrote:
>
> > I'm using Django's builtin AuthenticationForm
>
> > Here's my login view:http://dpaste.com/18110/
>
> > Form submittal (not empty or empty fields) takes me back to the login
> > page with 'Did not lo
On Mar 23, 8:30 pm, Karen Tracey wrote:
> On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee wrote:
>
> > I'm using Django's builtin AuthenticationForm
>
> > Here's my login view:http://dpaste.com/18110/
>
> > Form submittal (not empty or empty fields) takes me back to the login
> > page with 'Did not
On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee wrote:
>
> I'm using Django's builtin AuthenticationForm
>
> Here's my login view: http://dpaste.com/18110/
>
> Form submittal (not empty or empty fields) takes me back to the login
> page with 'Did not login'. My debugging print statement isn't showing
10 matches
Mail list logo