2019-07-04 23:26:52 +00:00
|
|
|
"""
|
|
|
|
Development settings for linkding webapp
|
|
|
|
"""
|
|
|
|
|
|
|
|
# Start from development settings
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
from .base import *
|
|
|
|
|
|
|
|
# Turn on debug mode
|
|
|
|
DEBUG = True
|
|
|
|
# Turn on SASS compilation
|
|
|
|
SASS_PROCESSOR_ENABLED = True
|
|
|
|
|
|
|
|
# Enable debug logging
|
|
|
|
LOGGING = {
|
|
|
|
'version': 1,
|
2021-01-12 21:42:56 +00:00
|
|
|
'disable_existing_loggers': False,
|
|
|
|
'formatters': {
|
|
|
|
'simple': {
|
|
|
|
'format': '{levelname} {message}',
|
|
|
|
'style': '{',
|
|
|
|
},
|
2019-07-04 23:26:52 +00:00
|
|
|
},
|
|
|
|
'handlers': {
|
|
|
|
'console': {
|
|
|
|
'class': 'logging.StreamHandler',
|
2021-01-12 21:42:56 +00:00
|
|
|
'formatter': 'simple'
|
2019-07-04 23:26:52 +00:00
|
|
|
}
|
|
|
|
},
|
2021-01-12 21:42:56 +00:00
|
|
|
'root': {
|
|
|
|
'handlers': ['console'],
|
|
|
|
'level': 'WARNING',
|
|
|
|
},
|
2019-07-04 23:26:52 +00:00
|
|
|
'loggers': {
|
|
|
|
'django.db.backends': {
|
2020-06-07 12:15:44 +00:00
|
|
|
'level': 'ERROR', # Set to DEBUG to log all SQL calls
|
2019-07-04 23:26:52 +00:00
|
|
|
'handlers': ['console'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Import custom settings
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
from .custom import *
|