- MYSQL Daten eingegeben
This commit is contained in:
parent
b33e49a022
commit
aa3a41c1bb
Binary file not shown.
|
|
@ -32,7 +32,6 @@ ALLOWED_HOSTS = []
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'django_select2',
|
|
||||||
'users.apps.UsersConfig',
|
'users.apps.UsersConfig',
|
||||||
'areas.apps.AreasConfig',
|
'areas.apps.AreasConfig',
|
||||||
'tasks.apps.TasksConfig',
|
'tasks.apps.TasksConfig',
|
||||||
|
|
@ -85,8 +84,8 @@ DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.mysql',
|
'ENGINE': 'django.db.backends.mysql',
|
||||||
'NAME' : 'digitaleagentur',
|
'NAME' : 'digitaleagentur',
|
||||||
'USER' : 'root',
|
'USER' : 'digitaleagentur',
|
||||||
'PASSWORD' : '',
|
'PASSWORD' : 'H9hzbzyBqtUCnZlIwL1qSrzh',
|
||||||
'PORT' : 3306
|
'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_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||||
EMAIL_HOST = 'smtp.strato.de'
|
EMAIL_HOST = 'smtp.strato.de'
|
||||||
EMAIL_PORT = 589
|
EMAIL_PORT = 587
|
||||||
EMAIL_USE_TLS = True
|
EMAIL_USE_TLS = True
|
||||||
|
|
||||||
EMAIL_HOST_USER = "support@digitale-agentur.com"
|
EMAIL_HOST_USER = "support@digitale-agentur.com"
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -42,7 +42,7 @@ class AgencyCreateView(CreateView):
|
||||||
send_mail(
|
send_mail(
|
||||||
'Agenturanmeldung',
|
'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.',
|
'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')],
|
[form.cleaned_data.get('email')],
|
||||||
fail_silently=False,
|
fail_silently=False,
|
||||||
)
|
)
|
||||||
|
|
@ -99,7 +99,7 @@ class UsersCreateUser(LoginRequiredMixin, CreateView):
|
||||||
send_mail(
|
send_mail(
|
||||||
self.request.user.profile.agency.name + ' Anmeldung',
|
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.',
|
'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')],
|
[form.cleaned_data.get('email')],
|
||||||
fail_silently=False,
|
fail_silently=False,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue