From 7cd7cdec38478cab6ee146312b4b7a6f4d4ce93d Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Tue, 14 Apr 2020 17:43:51 +0200 Subject: [PATCH] Maildaten und Host --- .../__pycache__/settings.cpython-38.pyc | Bin 3860 -> 3854 bytes digitaleagentur/settings.py | 13 +++++++++++-- users/views.py | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/digitaleagentur/__pycache__/settings.cpython-38.pyc b/digitaleagentur/__pycache__/settings.cpython-38.pyc index 1661d7aeb90118846cfb5407ea1de0a73dc2c7af..c72b7738f1037f4cdc55e85c5c14caf9312893d3 100644 GIT binary patch delta 152 zcmbOt*C)pp%FD~e00jSUPK~P-+sIeVsOTT1nc^R%l@gG`p2--cof4Q5loFiD2xRM| zFa-%FD~e00c`nPKiqp-N;wXs2C8Xnc^R%l@gf3p2--cof4E1oD!1B2xRM| zFat#Lh0M}SER1l-%EZ9*pM{l)5kxcn2LLKCB$)sJ diff --git a/digitaleagentur/settings.py b/digitaleagentur/settings.py index 0995162..e9c59cc 100644 --- a/digitaleagentur/settings.py +++ b/digitaleagentur/settings.py @@ -15,7 +15,7 @@ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -BASE_URL = "https://digitale-agentur.com/" +BASE_URL = "https://dev01.digitale-agentur.com/" #BASE_URL = "http://localhost:8000/" CRONAPIKEY = "gCddsaz6NOnE9QbXZM5LasdEk122D" @@ -174,14 +174,23 @@ GRAPPELLI_CLEAN_INPUT_TYPES = False # EMAILs EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' - +# MAIL PROD +''' EMAIL_HOST = 'smtp.strato.de' EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_USER = "support@digitale-agentur.com" EMAIL_HOST_PASSWORD = "aPx9m3!7x3m@8o!t" DEFAULT_FROM_EMAIL = "support@digitale-agentur.com" +''' +# MAIL DEV +EMAIL_HOST = 'smtp.strato.de' +EMAIL_PORT = 587 +EMAIL_USE_TLS = True +EMAIL_HOST_USER = "support@dev01.digitale-agentur.com" +EMAIL_HOST_PASSWORD = "support@dev01.digitale-agentur.com" +DEFAULT_FROM_EMAIL = "support@dev01.digitale-agentur.com" # FOR DATEPICKER BOOTSTRAP4 = { diff --git a/users/views.py b/users/views.py index 440ac86..bbe7959 100644 --- a/users/views.py +++ b/users/views.py @@ -33,6 +33,8 @@ from django.contrib.auth.models import Group from cloud.models import DataDir from message.models import Message from notificsys.models import UserNotification +import socket + def randomString(stringLength=10): """Generate a random string of fixed length """