Add attribute_aggregator application to settings.
This commit is contained in:
parent
bcb917c945
commit
55d6e8d25f
|
@ -1,12 +1,15 @@
|
|||
# Django settings for veridic project.
|
||||
|
||||
import os
|
||||
DEFAULT_CHARSET = 'utf-8'
|
||||
|
||||
import os, sys
|
||||
|
||||
DEBUG = True
|
||||
USE_DEBUG_TOOLBAR = True
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
STATIC_SERVE = True
|
||||
_PROJECT_PATH = os.path.join(os.path.dirname(__file__))
|
||||
sys.path.append(_PROJECT_PATH)
|
||||
|
||||
ADMINS = (
|
||||
# ('Your Name', 'your_email@domain.com'),
|
||||
|
@ -91,6 +94,7 @@ INSTALLED_APPS = (
|
|||
'django.contrib.admin',
|
||||
'acs',
|
||||
'acs.abac',
|
||||
'acs.attribute_aggregator',
|
||||
)
|
||||
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
|
@ -137,13 +141,16 @@ def getlogger():
|
|||
logger = logging.getLogger()
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
#Hack to disable too verbose database debug logs
|
||||
logging.getLogger('django.db.backends').setLevel(logging.ERROR)
|
||||
|
||||
formatter = \
|
||||
logging.Formatter(\
|
||||
'[%(asctime)s] %(levelname)-8s %(name)s.%(message)s',
|
||||
'%Y-%m-%d %a %H:%M:%S')
|
||||
|
||||
if LOG_FILENAME:
|
||||
log_handler = logging.FileHandler(LOG_FILENAME)
|
||||
log_handler = logging.FileHandler(LOG_FILENAME, encoding = "UTF-8")
|
||||
log_handler.setFormatter(formatter)
|
||||
log_handler.setLevel(LOG_FILE_LEVEL)
|
||||
logger.addHandler(log_handler)
|
||||
|
|
Reference in New Issue