From a1d3539e3ca9b341a00ffd8d5cfb35ef5ba14d70 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Wed, 11 Feb 2026 21:41:17 -0300 Subject: [PATCH 1/2] feat: add allauth logging --- app/WYGIWYH/settings.py | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/app/WYGIWYH/settings.py b/app/WYGIWYH/settings.py index fe99dca..0e564c1 100644 --- a/app/WYGIWYH/settings.py +++ b/app/WYGIWYH/settings.py @@ -449,7 +449,7 @@ SPECTACULAR_SETTINGS = { if "procrastinate" in sys.argv: LOGGING = { "version": 1, - "disable_existing_loggers": False, + "disable_existing_loggers": True, "formatters": { "standard": { "format": "[%(asctime)s] - %(levelname)s - %(name)s - %(message)s", @@ -457,26 +457,19 @@ if "procrastinate" in sys.argv: }, }, "handlers": { - "procrastinate": { - "level": "INFO", - "class": "logging.StreamHandler", - "formatter": "standard", - }, "console": { "class": "logging.StreamHandler", "formatter": "standard", "level": "INFO", }, }, + "root": { + "handlers": ["console"], + "level": "INFO", + }, "loggers": { "procrastinate": { - "handlers": ["procrastinate"], - "propagate": False, - }, - "root": { - "handlers": ["console"], "level": "INFO", - "propagate": False, }, }, } @@ -496,19 +489,20 @@ else: "formatter": "standard", "level": "INFO", }, - "procrastinate": { - "level": "INFO", - "class": "logging.StreamHandler", - }, + }, + "root": { + "handlers": ["console"], + "level": "INFO", }, "loggers": { "procrastinate": { - "handlers": None, + "handlers": [], "propagate": False, }, - "root": { + "allauth": { "handlers": ["console"], - "level": "INFO", + "level": "DEBUG", + "propagate": False, }, }, } From ea5d86dbf83f8af294cec63a91f8a0bcfafbb56d Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Wed, 11 Feb 2026 21:42:00 -0300 Subject: [PATCH 2/2] fix: allauth not sending https redirect_uri --- app/WYGIWYH/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/WYGIWYH/settings.py b/app/WYGIWYH/settings.py index 0e564c1..eead651 100644 --- a/app/WYGIWYH/settings.py +++ b/app/WYGIWYH/settings.py @@ -389,6 +389,10 @@ SESSION_EXPIRE_AT_BROWSER_CLOSE = False SESSION_COOKIE_AGE = int(os.getenv("SESSION_EXPIRY_TIME", 2678400)) # 31 days SESSION_COOKIE_SECURE = os.getenv("HTTPS_ENABLED", "false").lower() == "true" +HTTPS_ENABLED = os.getenv("HTTPS_ENABLED", "false").lower() == "true" +ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https" if HTTPS_ENABLED else "http" +SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") if HTTPS_ENABLED else None + DEBUG_TOOLBAR_CONFIG = { "ROOT_TAG_EXTRA_ATTRS": "hx-preserve", # "SHOW_TOOLBAR_CALLBACK": lambda r: False, # disables it