mirror of
https://git.cmoser.eu/tinytools/django-tinywiki.git
synced 2026-02-04 06:06:33 +01:00
added TINYWIKI_HOME settings for settings the app-specific homepages of the wiki
This commit is contained in:
7
django_project/context_processors.py
Normal file
7
django_project/context_processors.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from . import settings
|
||||
|
||||
|
||||
def tinywiki(request):
|
||||
return {
|
||||
'tinywiki_home': settings.TINYWIKI_HOME,
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user