Use Wagtail login screen for admin-protected pages

Should never happen, but at least it won't look terrible
This commit is contained in:
Jake Howard 2022-08-28 20:34:23 +01:00
parent 6f073c6cfc
commit 9ee46721c9
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -186,6 +186,8 @@ WAGTAILSEARCH_BACKENDS = {
BASE_HOSTNAME = env("BASE_HOSTNAME") BASE_HOSTNAME = env("BASE_HOSTNAME")
WAGTAILADMIN_BASE_URL = f"https://{BASE_HOSTNAME}" WAGTAILADMIN_BASE_URL = f"https://{BASE_HOSTNAME}"
WAGTAIL_FRONTEND_LOGIN_URL = "/admin/login/"
DEFAULT_AUTO_FIELD = "django.db.models.AutoField" DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
WAGTAILIMAGES_IMAGE_MODEL = "images.CustomImage" WAGTAILIMAGES_IMAGE_MODEL = "images.CustomImage"