config removed and example added

This commit is contained in:
Dirk Alders 2024-10-06 18:18:11 +02:00
parent a90cd21b73
commit cd3335a30a
3 changed files with 27 additions and 12 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
data/pages data/pages
data/static data/static
db.sqlite3 db.sqlite3
config.py
# ---> Python # ---> Python
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files

View File

@ -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)-"
#

26
config_example/config.py Normal file
View File

@ -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'