From 250e7670911e9e1cdf63e75c9eacf9ebfbba5680 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 20 Jan 2013 11:01:06 +0100 Subject: [PATCH] Fix community login when starting at the /admin/ url Previously only worked if you started out at the root, not if you went directly into the admin pages. --- pgmailmgr/mailmgr/templates/admin/login.html | 11 +++++++++++ pgmailmgr/settings.py | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 pgmailmgr/mailmgr/templates/admin/login.html diff --git a/pgmailmgr/mailmgr/templates/admin/login.html b/pgmailmgr/mailmgr/templates/admin/login.html new file mode 100644 index 0000000..fb26045 --- /dev/null +++ b/pgmailmgr/mailmgr/templates/admin/login.html @@ -0,0 +1,11 @@ + + + + + +

Redirect

+

+Redirect here +

+ + diff --git a/pgmailmgr/settings.py b/pgmailmgr/settings.py index 8e2a129..54b6ff7 100644 --- a/pgmailmgr/settings.py +++ b/pgmailmgr/settings.py @@ -116,11 +116,12 @@ INSTALLED_APPS = ( '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 -- 2.39.5