Mercurial > public > sg101
changeset 179:70b2e307c866
Django 1.2 contrib apps need csrf_token. In particular, my login template needs to send a csrf_token to contrib.auth.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 17 Mar 2010 03:18:53 +0000 |
parents | d51743322bb2 |
children | aef00df91165 |
files | gpp/templates/accounts/login.html |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/templates/accounts/login.html Wed Mar 17 03:12:05 2010 +0000 +++ b/gpp/templates/accounts/login.html Wed Mar 17 03:18:53 2010 +0000 @@ -9,6 +9,7 @@ <tr><td> </td><td><input type="submit" value="Login" /></td></tr> </table> <input type="hidden" name="next" value="{{ next }}" /> +{% csrf_token %} </form> <ul>