mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-12 23:05:12 +00:00
Add sample login.html for django admin logins
This commit is contained in:
@ -12,6 +12,10 @@
|
|||||||
# AuthBackend in this module.
|
# AuthBackend in this module.
|
||||||
# * (And of course, register for a crypto key with the main authentication
|
# * (And of course, register for a crypto key with the main authentication
|
||||||
# provider website)
|
# 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
|
from django.http import HttpResponseRedirect
|
||||||
|
11
tools/communityauth/sample/django/login.html
Normal file
11
tools/communityauth/sample/django/login.html
Normal 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>
|
Reference in New Issue
Block a user