beautifed code and added descriptive comments
This commit is contained in:
+11
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user