diff --git a/README.md b/README.md index 891aec3..ec83599 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ purpose: gather data from intern(WMDE) and extern(volunteers) forms to create a ## Should be executed daily - python manage.py sendmails + python3 manage.py sendmails ## versions used in development diff --git a/foerderbarometer/settings_development.py b/foerderbarometer/settings_development.py index 4b06fe9..3f40d9b 100644 --- a/foerderbarometer/settings_development.py +++ b/foerderbarometer/settings_development.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/foerderbarometer/settings_production.py b/foerderbarometer/settings_production.py index 08a0774..709c201 100644 --- a/foerderbarometer/settings_production.py +++ b/foerderbarometer/settings_production.py @@ -22,6 +22,10 @@ EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = '10.0.6.25' EMAIL_PORT = '25' +# prefix for urls in mails +URLPREFIX = 'http://foerderung.wikimedia.de' + + # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent diff --git a/input/settings.py b/input/settings.py index c53b033..fc5056a 100644 --- a/input/settings.py +++ b/input/settings.py @@ -1,8 +1,7 @@ # mail for IF-OTRS -IF_EMAIL = 'if-test@wikimedia.de' +IF_EMAIL = 'communitys@wikimedia.de' # prefix for urls -URLPREFIX = 'http://127.0.0.1:8000' SURVEYPREFIX = 'https://wikimedia.sslsurvey.de/Foerderbarometer/?' # some links