Previously only worked if you started out at the root, not if you
went directly into the admin pages.
--- /dev/null
+<html>
+<head>
+<meta http-equiv="refresh" content="0;url=/accounts/login/?next=/admin/"></meta>
+</head>
+<body>
+<h1>Redirect</h1>
+<p>
+Redirect <a href="/accounts/login/?next=/admin/">here</a>
+</p>
+</body>
+</html>
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
+ # Need to load our app before admin, to override template
+ 'pgmailmgr.mailmgr',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
- 'pgmailmgr.mailmgr',
)
# A sample logging configuration. The only tangible logging