beautifed code and added descriptive comments

This commit is contained in:
Esther Kleinhenz
2018-12-09 19:22:30 +01:00
parent db60f32c07
commit faaa66aa8e
16 changed files with 112 additions and 74 deletions
+11 -1
View File
@@ -176,7 +176,11 @@ else:
AUTH_PROFILE_MODULE = 'application.CustomUser'
#Log Configuration
#external code
#import form https://docs.djangoproject.com/en/2.1/topics/logging/
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
@@ -224,6 +228,9 @@ LOGGING = {
}
}
#Logging Addon
#external code
#import from https://django-debug-toolbar.readthedocs.io/en/latest/installation.html
if DEBUG:
INTERNAL_IPS = ('127.0.0.1', 'localhost',)
@@ -254,8 +261,11 @@ if DEBUG:
'INTERCEPT_REDIRECTS': False,
}
EMAIL_BACKEND = 'post_office.EmailBackend'
#E-Mail administration
#external code customised
#import from https://github.com/ui/django-post_office
EMAIL_BACKEND = 'post_office.EmailBackend'
EMAIL_HOST = 'smtp.web.de'
EMAIL_HOST_USER = "esther.kleinhenz@web.de"
EMAIL_PORT = 25 # default smtp port
-1
View File
@@ -17,7 +17,6 @@ from django.contrib import admin
from django.conf.urls import include, url
from django.views.generic import TemplateView
from django.contrib.auth import views
import application.views