summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishanth Amuluru2011-01-07 11:07:21 +0530
committerNishanth Amuluru2011-01-07 11:07:21 +0530
commitdf77db72e2faa672f1704cdd7a507865a8d5a603 (patch)
tree1dff25b2526140c68481f79441c90adb97f651fd
parent9e99caf7e08b47460d9ee7f1b24ae46e0b0b21c9 (diff)
downloadpytask-df77db72e2faa672f1704cdd7a507865a8d5a603.tar.gz
pytask-df77db72e2faa672f1704cdd7a507865a8d5a603.tar.bz2
pytask-df77db72e2faa672f1704cdd7a507865a8d5a603.zip
Added csrf_token and included the urls
-rw-r--r--templates/registration/login.html1
-rwxr-xr-xurls.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/templates/registration/login.html b/templates/registration/login.html
index b2e60d6..c5ab83b 100644
--- a/templates/registration/login.html
+++ b/templates/registration/login.html
@@ -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>
diff --git a/urls.py b/urls.py
index 1f38f6e..693ed6b 100755
--- a/urls.py
+++ b/urls.py
@@ -21,4 +21,6 @@ urlpatterns = patterns('',
url(r'^accounts/register/$', register,
{'form_class': CustomRegistrationForm},
name='registration_register'),
+
+ (r'^accounts/', include('registration.urls')),
)