From: Magnus Hagander Date: Sun, 20 Jan 2013 10:01:06 +0000 (+0100) Subject: Fix community login when starting at the /admin/ url X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=250e7670911e9e1cdf63e75c9eacf9ebfbba5680;p=pgmailmgr.git 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. --- 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