Added csrf_token and included the urls
authorNishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 11:07:21 +0530
changeset 264 8c2376baee94
parent 263 48d68e75e9cc
child 265 1ce8241a9628
Added csrf_token and included the urls
templates/registration/login.html
urls.py
--- a/templates/registration/login.html	Fri Jan 07 11:00:22 2011 +0530
+++ b/templates/registration/login.html	Fri Jan 07 11:07:21 2011 +0530
@@ -1,6 +1,7 @@
 {% extends 'base.html' %}
 {% block content %}
 <form action="/accounts/login/" method="post">
+{% csrf_token %}
 {{ form.as_p }}
 <input type="submit" value="Login" />
 </form>
--- a/urls.py	Fri Jan 07 11:00:22 2011 +0530
+++ b/urls.py	Fri Jan 07 11:07:21 2011 +0530
@@ -21,4 +21,6 @@
     url(r'^accounts/register/$', register,
         {'form_class': CustomRegistrationForm},
         name='registration_register'),
+
+    (r'^accounts/', include('registration.urls')),
 )