From 4e3dc6c7951089f26af3c593cb561746ee35d4a6 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 28 Dec 2011 14:59:59 +0100 Subject: [PATCH] Add sample login.html for django admin logins --- tools/communityauth/sample/django/auth.py | 4 ++++ tools/communityauth/sample/django/login.html | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tools/communityauth/sample/django/login.html diff --git a/tools/communityauth/sample/django/auth.py b/tools/communityauth/sample/django/auth.py index 8b02de1c..c3118d51 100644 --- a/tools/communityauth/sample/django/auth.py +++ b/tools/communityauth/sample/django/auth.py @@ -12,6 +12,10 @@ # AuthBackend in this module. # * (And of course, register for a crypto key with the main authentication # provider website) +# * If the application uses the django admin interface, the login screen +# has to be replaced with something similar to login.html in this +# directory (adjust urls, and name it admin/login.html in any template +# directory that's processed before the default django.contrib.admin) # from django.http import HttpResponseRedirect diff --git a/tools/communityauth/sample/django/login.html b/tools/communityauth/sample/django/login.html new file mode 100644 index 00000000..0b4b1fe5 --- /dev/null +++ b/tools/communityauth/sample/django/login.html @@ -0,0 +1,11 @@ + + + + + +

Redirect

+

+Redirect here +

+ + -- 2.39.5