diff --git a/digitaleagentur/__pycache__/settings.cpython-38.pyc b/digitaleagentur/__pycache__/settings.cpython-38.pyc index 1661d7a..c72b773 100644 Binary files a/digitaleagentur/__pycache__/settings.cpython-38.pyc and b/digitaleagentur/__pycache__/settings.cpython-38.pyc differ 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 """