- MYSQL Daten eingegeben
This commit is contained in:
parent
b33e49a022
commit
aa3a41c1bb
Binary file not shown.
|
|
@ -32,7 +32,6 @@ ALLOWED_HOSTS = []
|
|||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'django_select2',
|
||||
'users.apps.UsersConfig',
|
||||
'areas.apps.AreasConfig',
|
||||
'tasks.apps.TasksConfig',
|
||||
|
|
@ -85,8 +84,8 @@ DATABASES = {
|
|||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME' : 'digitaleagentur',
|
||||
'USER' : 'root',
|
||||
'PASSWORD' : '',
|
||||
'USER' : 'digitaleagentur',
|
||||
'PASSWORD' : 'H9hzbzyBqtUCnZlIwL1qSrzh',
|
||||
'PORT' : 3306
|
||||
}
|
||||
}
|
||||
|
|
@ -157,7 +156,7 @@ Wenn adminstrator = 1 dann darf keine andere Rolle 1 sein! Sonst wird das Menü
|
|||
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
EMAIL_HOST = 'smtp.strato.de'
|
||||
EMAIL_PORT = 589
|
||||
EMAIL_PORT = 587
|
||||
EMAIL_USE_TLS = True
|
||||
|
||||
EMAIL_HOST_USER = "support@digitale-agentur.com"
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -42,7 +42,7 @@ class AgencyCreateView(CreateView):
|
|||
send_mail(
|
||||
'Agenturanmeldung',
|
||||
'Hallo ' + form.cleaned_data.get('first_name') + ' ' + form.cleaned_data.get('last_name') + '! Bitte setzen sie sich auf localhost:8000/password-reset/ ein Passwort. Anschließend können Sie weitere Details Ihrer Agentur eingeben.',
|
||||
'htrampe@gmail.com',
|
||||
'support@digitale-agentur.com',
|
||||
[form.cleaned_data.get('email')],
|
||||
fail_silently=False,
|
||||
)
|
||||
|
|
@ -99,7 +99,7 @@ class UsersCreateUser(LoginRequiredMixin, CreateView):
|
|||
send_mail(
|
||||
self.request.user.profile.agency.name + ' Anmeldung',
|
||||
'Hallo ' + form.cleaned_data.get('first_name') + ' ' + form.cleaned_data.get('last_name') + '! Bitte setzen sie sich auf localhost:8000/password-reset/ ein Passwort.',
|
||||
'htrampe@gmail.com',
|
||||
'support@digitale-agentur.com',
|
||||
[form.cleaned_data.get('email')],
|
||||
fail_silently=False,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue