Add auto logging.

This commit is contained in:
Roberto Rosario
2015-09-19 21:57:46 -04:00
parent 659df0c05c
commit baea430d5e
4 changed files with 45 additions and 0 deletions

View File

@@ -212,6 +212,23 @@ COMPRESS_CSS_FILTERS = (
COMPRESS_ENABLED = False
COMPRESS_PARSER = 'compressor.parser.HtmlParser'
# --------- Django -------------------
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'intermediate': {
'format': '%(name)s <%(process)d> [%(levelname)s] "%(funcName)s() %(message)s"'
},
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'intermediate'
}
},
'loggers': {}
}
LOGIN_URL = 'authentication:login_view'
LOGIN_REDIRECT_URL = 'common:home'
INTERNAL_IPS = ('127.0.0.1',)