From 2cd26f0d0e630ef5b44c17999c7e6136c267c9d7 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 9 Nov 2020 12:35:23 +0100 Subject: [PATCH] another fix for deployment --- foerderbarometer/settings.py | 3 +++ input/views.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/foerderbarometer/settings.py b/foerderbarometer/settings.py index 4b06fe9..3f40d9b 100644 --- a/foerderbarometer/settings.py +++ b/foerderbarometer/settings.py @@ -16,6 +16,9 @@ from pathlib import Path from django.core.exceptions import ImproperlyConfigured +# prefix for urls in mails +URLPREFIX = 'http://localhost:8000' + # mails in development go to stdout EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' diff --git a/input/views.py b/input/views.py index d4bdb45..6415c19 100644 --- a/input/views.py +++ b/input/views.py @@ -16,7 +16,7 @@ from .forms import ProjectForm, ExternForm, LibraryForm, IFGForm, LiteratureForm ListForm, BusinessCardForm, INTERN_CHOICES from .models import Project, TYPE_CHOICES, Library, Literature from .settings import IF_EMAIL -# from settings import URLPREFIX +from settings import URLPREFIX def auth_deny(choice,pk,auth): if choice in ('BIB', 'ELIT', 'SOFT'):