From 4105c3b777e82cb4b6dadf27c109dd21010ad8ce Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 1 Jul 2026 23:06:39 +0200 Subject: Added db support --- conf/__init__.py | 8 ++++++++ conf/local.py | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 conf/__init__.py create mode 100644 conf/local.py (limited to 'conf') 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 @@ +import os + +try: + from .local import * +except ImportError: + pass + +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 @@ +import os + +os.environ.setdefault('DATABASE_URL', 'postgresql:///ttun') -- cgit v1.2.3