Browse Source

more settings for production

master
Benni Baermann 4 years ago
parent
commit
40372a0945
4 changed files with 9 additions and 3 deletions
  1. +1
    -1
      README.md
  2. +3
    -0
      foerderbarometer/settings_development.py
  3. +4
    -0
      foerderbarometer/settings_production.py
  4. +1
    -2
      input/settings.py

+ 1
- 1
README.md View File

@ -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

+ 3
- 0
foerderbarometer/settings_development.py View File

@ -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'

+ 4
- 0
foerderbarometer/settings_production.py View File

@ -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

+ 1
- 2
input/settings.py View File

@ -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

Loading…
Cancel
Save