mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-22 19:33:05 +00:00
a6f35119cd
* Replace django-background-tasks with huey * Add command for migrating tasks * Add custom admin view * fix dockerfile * fix tests * fix tests in CI * fix task tests * implement retries * improve config * workaround to avoid running singlefile tasks in parallel * properly kill single-file sub-processes * use period task for HTML snapshots * clear task lock when starting task consumer * remove obsolete cleanup task command
60 lines
1.4 KiB
Python
60 lines
1.4 KiB
Python
"""
|
|
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 toolbar
|
|
INSTALLED_APPS.append("debug_toolbar")
|
|
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
|
|
|
|
INTERNAL_IPS = [
|
|
"127.0.0.1",
|
|
]
|
|
|
|
# Allow access through ngrok
|
|
CSRF_TRUSTED_ORIGINS = ["https://*.ngrok-free.app"]
|
|
|
|
# Enable debug logging
|
|
LOGGING = {
|
|
"version": 1,
|
|
"disable_existing_loggers": False,
|
|
"formatters": {
|
|
"simple": {
|
|
"format": "{levelname} {asctime} {module}: {message}",
|
|
"style": "{",
|
|
},
|
|
},
|
|
"handlers": {"console": {"class": "logging.StreamHandler", "formatter": "simple"}},
|
|
"root": {
|
|
"handlers": ["console"],
|
|
"level": "WARNING",
|
|
},
|
|
"loggers": {
|
|
"django.db.backends": {
|
|
"level": "ERROR", # Set to DEBUG to log all SQL calls
|
|
"handlers": ["console"],
|
|
},
|
|
"bookmarks": { # Log importer debug output
|
|
"level": "DEBUG",
|
|
"handlers": ["console"],
|
|
"propagate": False,
|
|
},
|
|
"huey": { # Huey
|
|
"level": "INFO",
|
|
"handlers": ["console"],
|
|
"propagate": False,
|
|
},
|
|
},
|
|
}
|
|
|
|
# Import custom settings
|
|
# noinspection PyUnresolvedReferences
|
|
from .custom import *
|