From cd3335a30acefc434a8b9f587f73a3a313ff783e Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sun, 6 Oct 2024 18:18:11 +0200 Subject: [PATCH] config removed and example added --- .gitignore | 1 + config.py | 12 ------------ config_example/config.py | 26 ++++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 12 deletions(-) delete mode 100644 config.py create mode 100644 config_example/config.py diff --git a/.gitignore b/.gitignore index 5ce3353..d2c42d0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ data/pages data/static db.sqlite3 +config.py # ---> Python # Byte-compiled / optimized / DLL files diff --git a/config.py b/config.py deleted file mode 100644 index 77ba7dc..0000000 --- a/config.py +++ /dev/null @@ -1,12 +0,0 @@ -import os -# -# -APP_NAME = "piki" -STARTPAGE = "startpage" - - -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True -# -SECRET_KEY = "*+=wy%2lo2^@fxxtmx0)14x507%6v73ke-%24%_fb6f+3h^c)-" -# diff --git a/config_example/config.py b/config_example/config.py new file mode 100644 index 0000000..901ceae --- /dev/null +++ b/config_example/config.py @@ -0,0 +1,26 @@ +# +# Piki Setting +# +STARTPAGE = "startpage" + + +# +# General settings +# +# APP_NAME is used for logging +APP_NAME = 'piki' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = False + +# SECURITY WARNING: don't run with a dummy secret in production! +SECRET_KEY = None + +# SECURITY WARNING: don't run with '0.0.0.0' in in production, unless you know what you are doing! +ALLOWED_HOSTS = ['127.0.0.1', 'localhost', ] + +# +# Style settings +# +DEFAULT_THEME = 'clear-blue' +