From 7410388fd9baa7fe3a0f89631b46865348631168 Mon Sep 17 00:00:00 2001 From: Leszek Date: Wed, 7 Aug 2024 17:23:23 +0200 Subject: [PATCH] add info about email backend hack --- .../kpi-frontend-development-troubleshooting.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/_articles/kpi-frontend-development-troubleshooting.md b/docs/_articles/kpi-frontend-development-troubleshooting.md index ca7f50f..5c603d9 100644 --- a/docs/_articles/kpi-frontend-development-troubleshooting.md +++ b/docs/_articles/kpi-frontend-development-troubleshooting.md @@ -77,6 +77,16 @@ Check out kobocat logs `./run.py -cf logs -f --tail=10 kobocat` at `kobo-install ## Misc problems +### Email-activating fake account + +Sometimes you create a test account on local environment with just a username and password (no email address). If you try to log in, you will see "confirm email" message. You don't need to create temporary email addresses, you can simply add one line on your dev settings: + +``` +EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' +``` + +After that you will see the email content in your logs (and you can click the activation link through there). + ### JS out of memory `ts-loader FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory`