Re: Having trouble authenticating/validating

2009-06-02 Thread gsnyder2007
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

Re: Problem logging into admin site

2010-04-29 Thread gsnyder2007
I know this is way delayed, but in the hopes it helps someone else out there... if you have, SESSION_COOKIE_SECURE = True then the browser may not be sending the cookie back to your view on an http (i.e. not https) page. The behavior is as you described. The admin login complains that the browser

Form with ChoiceField that collects additional info with each choice

2010-04-30 Thread gsnyder2007
I'm looking for a pointer to sample code or advice regarding what is the best way to build a form that allows the user to select from several options and supply additional textual input that is associated with the option they chose, e.g. choices = [ ('option1', 'value1'), # additional text inp