diff --git a/biscuit/core/settings.py b/biscuit/core/settings.py index f6288ea78a6c3e8fb453d4ef1a6238afc13be926..4afe98744a6818634225cae80facdd9824746aa7 100644 --- a/biscuit/core/settings.py +++ b/biscuit/core/settings.py @@ -52,6 +52,7 @@ INSTALLED_APPS = [ 'sass_processor', 'easyaudit', 'dbbackup', + 'dbsettings', 'django_cron', 'bootstrap4', 'fa', diff --git a/biscuit/core/urls.py b/biscuit/core/urls.py index 77feb00b39ab7865de67d17f30e5e3990f35a9c8..38418bb1708f10e59f625411b16ada1d19aa63f8 100644 --- a/biscuit/core/urls.py +++ b/biscuit/core/urls.py @@ -35,7 +35,8 @@ urlpatterns = [ path('contact/', include('contact_form.urls')), path('impersonate/', include('impersonate.urls')), path('__i18n__/', include('django.conf.urls.i18n')), - path('select2/', include('django_select2.urls')) + path('select2/', include('django_select2.urls')), + path('settings/', include('dbsettings.urls')) ] # Serve static files from STATIC_ROOT to make it work with runserver diff --git a/poetry.lock b/poetry.lock index 4ec822895f37691403320db0fe96202c70f7661d..226b6ce8a57eb1dc5b5ac360510e71a7fb72e90d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -240,6 +240,14 @@ Django = ">=1.5" pytz = "*" six = "*" +[[package]] +category = "main" +description = "Application settings whose values can be updated while a project is up and running." +name = "django-dbsettings" +optional = false +python-versions = "*" +version = "0.11.0" + [[package]] category = "main" description = "A configurable set of panels that display various debug information about the current request/response." @@ -1295,7 +1303,7 @@ more-itertools = "*" ldap = ["django-auth-ldap"] [metadata] -content-hash = "9118795c129f38595fa0d118bd48da56dfd8732a359e2d97cbea3f9e97b7f690" +content-hash = "908e1e56f87aef8ccff2ce9a79bf335b5cb09896566d1dddb45c62c799c86310" python-versions = "^3.7" [metadata.hashes] @@ -1323,6 +1331,7 @@ django-common-helpers = ["2d56be6fa261d829a6a224f189bf276267b9082a17d613fe5f015d django-contact-form = ["b42b7e04d6af3318b8427c1eaf62385ec66da252aa79b607ee55d956c7af4a2d", "c31f73faa13f52efa81ac95f41007f3a84eca617f92773a1bed7ca90c61cb3ed"] django-cron = ["08d22708c8b2ecab8cda989019a66c7e1e2424c59d822796fd45abf7731d261d"] django-dbbackup = ["9470e5d8bdaee4feb878b1b66c59eb9b27a131cccd648bf7cbfe70930acd4fc0"] +django-dbsettings = ["e3147ced54b7db3371df10df8845e4514aeae96720000bca1a01d0a6490a1404"] django-debug-toolbar = ["24c157bc6c0e1648e0a6587511ecb1b007a00a354ce716950bff2de12693e7a8", "77cfba1d6e91b9bc3d36dc7dc74a9bb80be351948db5f880f2562a0cbf20b6c5"] django-easy-audit = ["1c5d5e6d6a33f50f696ed53cdaf51de0a4ae2f110ef8c41b33bc139b737729a6", "4b40a30599fe721eb0a9946f5023254fa0904d531c9f4adb23ee52601efaf89b"] django-fa = ["e3ebf97b90e374b5ccb5b8a70e4a932c8787f2ee995c09a97a63bf9a1366c3ff"] diff --git a/pyproject.toml b/pyproject.toml index c6a4edafb62cb0c854fb12acbab8364166ce3436..456e9d434956b95ea80d311aaabf06f6b8379ebe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,7 @@ django_select2 = "^7.1" requests = "^2.22" django-two-factor-auth = { git = "https://github.com/Bouke/django-two-factor-auth", rev = "bf9d0812ab11320a6cadc6709c382a03184f2e31", extras = [ "YubiKey", "phonenumbers", "Call", "SMS" ] } django-yarnpkg = "^6.0" +django-dbsettings = "^0.11.0" [tool.poetry.extras] ldap = ["django-auth-ldap"]