summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')),
)