diff options
author | Nishanth Amuluru | 2011-01-07 11:07:21 +0530 |
---|---|---|
committer | Nishanth Amuluru | 2011-01-07 11:07:21 +0530 |
commit | df77db72e2faa672f1704cdd7a507865a8d5a603 (patch) | |
tree | 1dff25b2526140c68481f79441c90adb97f651fd | |
parent | 9e99caf7e08b47460d9ee7f1b24ae46e0b0b21c9 (diff) | |
download | pytask-df77db72e2faa672f1704cdd7a507865a8d5a603.tar.gz pytask-df77db72e2faa672f1704cdd7a507865a8d5a603.tar.bz2 pytask-df77db72e2faa672f1704cdd7a507865a8d5a603.zip |
Added csrf_token and included the urls
-rw-r--r-- | templates/registration/login.html | 1 | ||||
-rwxr-xr-x | urls.py | 2 |
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> @@ -21,4 +21,6 @@ urlpatterns = patterns('', url(r'^accounts/register/$', register, {'form_class': CustomRegistrationForm}, name='registration_register'), + + (r'^accounts/', include('registration.urls')), ) |