Add sample login.html for django admin logins

This commit is contained in:
Magnus Hagander
2011-12-28 14:59:59 +01:00
parent 03df19d7d7
commit 4e3dc6c795
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,11 @@
<html>
<head>
<meta http-equiv="refresh" content="0;url=/register/login/?next=/register/admin/"></meta>
</head>
<body>
<h1>Redirect</h1>
<p>
Redirect <a href="/register/login/?next=/register/admin/">here</a>
</p>
</body>
</html>