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
|
|
|
|
|
2021-03-28 10:11:56 +00:00
|
|
|
# Enable debug toolbar
|
|
|
|
INSTALLED_APPS.append('debug_toolbar')
|
|
|
|
MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')
|
|
|
|
|
|
|
|
INTERNAL_IPS = [
|
|
|
|
'127.0.0.1',
|
|
|
|
]
|
|
|
|
|
2023-05-20 09:54:26 +00:00
|
|
|
# Allow access through ngrok
|
|
|
|
CSRF_TRUSTED_ORIGINS = ['https://*.ngrok-free.app']
|
|
|
|
|
2019-07-04 23:26:52 +00:00
|
|
|
# Enable debug logging
|
|
|
|
LOGGING = {
|
|
|
|
'version': 1,
|
2021-01-12 21:42:56 +00:00
|
|
|
'disable_existing_loggers': False,
|
|
|
|
'formatters': {
|
|
|
|
'simple': {
|
2023-01-14 10:24:09 +00:00
|
|
|
'format': '{levelname} {asctime} {module}: {message}',
|
2021-01-12 21:42:56 +00:00
|
|
|
'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'],
|
2021-09-04 20:31:04 +00:00
|
|
|
},
|
2022-08-14 11:35:03 +00:00
|
|
|
'bookmarks': { # Log importer debug output
|
2022-05-21 07:27:30 +00:00
|
|
|
'level': 'DEBUG',
|
|
|
|
'handlers': ['console'],
|
|
|
|
'propagate': False,
|
2019-07-04 23:26:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Import custom settings
|
|
|
|
# noinspection PyUnresolvedReferences
|
|
|
|
from .custom import *
|