From: Thierry Parmentelat Date: Mon, 10 Dec 2012 14:33:26 +0000 (+0100) Subject: review the login view X-Git-Tag: myslice-django-0.1-1~158 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=25bee550ca83cd994254445967df16070fc4cc8c review the login view --- diff --git a/README b/README index 18f7ac97..3e2416eb 100644 --- a/README +++ b/README @@ -14,7 +14,10 @@ See devel/ for more devel-oriented doc. much like our past drupal_set_html_head() * auth: - a django 'app' that deals with authentication + a django 'app' that deals with authentication; see especially + auth.backend.MyCustomBackend + for how to use a separate authentication system, + as well as settings.py for how to enable it * slice: a django app for dealing with slice views diff --git a/templates/login-view.html b/templates/login-view.html index 5376577d..1a39cd37 100644 --- a/templates/login-view.html +++ b/templates/login-view.html @@ -1,29 +1,17 @@ - - - -Log in - - - - - {{ state }} - -
- {% csrf_token %} - {% if next %} - - {% endif %} - username: -
- password: -
+{% extends 'myslice-layout.html' %} - -
- - +{% block content_related %} +

{{ state }}

+ +
+ {% csrf_token %} + {% if next %} + + {% endif %} + username: +
+ password: +
+ +
+{% endblock content_related %}