diff options
-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')), ) |