diff options
| author | 2026-07-01 23:06:39 +0200 | |
|---|---|---|
| committer | 2026-07-01 23:06:39 +0200 | |
| commit | 4105c3b777e82cb4b6dadf27c109dd21010ad8ce (patch) | |
| tree | ab497c0bac381d27765cff389bcf855a9e0bf0b7 /conf | |
| parent | d8968acab83c7a91b01eee4b35828a2b05c8dd6b (diff) | |
| download | server-4105c3b777e82cb4b6dadf27c109dd21010ad8ce.tar.gz server-4105c3b777e82cb4b6dadf27c109dd21010ad8ce.tar.bz2 server-4105c3b777e82cb4b6dadf27c109dd21010ad8ce.zip | |
Added db support
Diffstat (limited to 'conf')
| -rw-r--r-- | conf/__init__.py | 8 | ||||
| -rw-r--r-- | conf/local.py | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/conf/__init__.py b/conf/__init__.py new file mode 100644 index 0000000..c08dcee --- /dev/null +++ b/conf/__init__.py | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | import os | ||
| 2 | |||
| 3 | try: | ||
| 4 | from .local import * | ||
| 5 | except ImportError: | ||
| 6 | pass | ||
| 7 | |||
| 8 | DATABASE_URL = os.environ.get('DATABASE_URL') | ||
diff --git a/conf/local.py b/conf/local.py new file mode 100644 index 0000000..608e0e5 --- /dev/null +++ b/conf/local.py | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | import os | ||
| 2 | |||
| 3 | os.environ.setdefault('DATABASE_URL', 'postgresql:///ttun') | ||
