summaryrefslogtreecommitdiffhomepage
path: root/libs/dynaconf/__init__.py
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-10-14 09:56:21 -0400
committerGitHub <[email protected]>2023-10-14 09:56:21 -0400
commitc89da3e6192a519ccefa6bb7d9f9c9eaa280d373 (patch)
tree6343200ac81b8c7e8eb089ebfb828768f4d94c4f /libs/dynaconf/__init__.py
parentd6579417ba3b3555bff3af446bef8a56e2d7a7c6 (diff)
downloadbazarr-c89da3e6192a519ccefa6bb7d9f9c9eaa280d373.tar.gz
bazarr-c89da3e6192a519ccefa6bb7d9f9c9eaa280d373.zip
Changing from config.ini to config.yamlv1.3.2-beta.0
Diffstat (limited to 'libs/dynaconf/__init__.py')
-rw-r--r--libs/dynaconf/__init__.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/libs/dynaconf/__init__.py b/libs/dynaconf/__init__.py
new file mode 100644
index 000000000..a99ce5f95
--- /dev/null
+++ b/libs/dynaconf/__init__.py
@@ -0,0 +1,31 @@
+from __future__ import annotations
+
+from dynaconf.base import LazySettings # noqa
+from dynaconf.constants import DEFAULT_SETTINGS_FILES
+from dynaconf.contrib import DjangoDynaconf # noqa
+from dynaconf.contrib import FlaskDynaconf # noqa
+from dynaconf.validator import ValidationError # noqa
+from dynaconf.validator import Validator # noqa
+
+settings = LazySettings(
+ # This global `settings` is deprecated from v3.0.0+
+ # kept here for backwards compatibility
+ # To Be Removed in 4.0.x
+ warn_dynaconf_global_settings=True,
+ environments=True,
+ lowercase_read=False,
+ load_dotenv=True,
+ default_settings_paths=DEFAULT_SETTINGS_FILES,
+)
+
+# This is the new recommended base class alias
+Dynaconf = LazySettings # noqa
+
+__all__ = [
+ "Dynaconf",
+ "LazySettings",
+ "Validator",
+ "FlaskDynaconf",
+ "ValidationError",
+ "DjangoDynaconf",
+]