another fix for deployment

This commit is contained in:
Benni Baermann 2020-11-09 12:35:23 +01:00
parent 0a62bd426f
commit 2cd26f0d0e
2 changed files with 4 additions and 1 deletions

View file

@ -16,6 +16,9 @@ from pathlib import Path
from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ImproperlyConfigured
# prefix for urls in mails
URLPREFIX = 'http://localhost:8000'
# mails in development go to stdout # mails in development go to stdout
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

View file

@ -16,7 +16,7 @@ from .forms import ProjectForm, ExternForm, LibraryForm, IFGForm, LiteratureForm
ListForm, BusinessCardForm, INTERN_CHOICES ListForm, BusinessCardForm, INTERN_CHOICES
from .models import Project, TYPE_CHOICES, Library, Literature from .models import Project, TYPE_CHOICES, Library, Literature
from .settings import IF_EMAIL from .settings import IF_EMAIL
# from settings import URLPREFIX from settings import URLPREFIX
def auth_deny(choice,pk,auth): def auth_deny(choice,pk,auth):
if choice in ('BIB', 'ELIT', 'SOFT'): if choice in ('BIB', 'ELIT', 'SOFT'):