mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-22 11:23:02 +00:00
ffaaf0521d
* return updated HTML from bookmark actions * open details through URL * fix details update * improve modal behavior * use a frame * make behaviors properly destroy themselves * remove page and details params from tag urls * use separate behavior for details and tags * remove separate details view * make it work with other views * add asset actions * remove asset refresh for now * remove details partial * fix tests * remove old partials * update tests * cache and reuse tags * extract search autocomplete behavior * remove details param from pagination * fix tests * only return details modal when navigating in frame * fix link target * remove unused behaviors * use auto submit behavior for user select * fix import
58 lines
1.4 KiB
Python
58 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
|
|
|
|
# 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 *
|