added TINYWIKI_HOME settings for settings the app-specific homepages of the wiki

This commit is contained in:
2025-12-30 05:40:56 +01:00
parent 14c1d9d978
commit 6243f87732
3 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
from . import settings
def tinywiki(request):
return {
'tinywiki_home': settings.TINYWIKI_HOME,
}

View File

@@ -36,6 +36,8 @@ ENV = Env(
EMAIL_BACKEND=(str, "console"),
)
TINYWIKI_HOME = "grow-home"
_env_file = Path(ENV.path("DOTENV"))
if _env_file.is_file():
ENV.read_env(_env_file)