This commit is contained in:
2021-11-19 21:00:05 +00:00
parent cb95416b47
commit e48ea09a14
5 changed files with 241 additions and 0 deletions

14
instance/cfg.py Normal file
View File

@@ -0,0 +1,14 @@
import os
from envs import env
pages_root = 'data'
static_root = 'static'
default_template = 'page.html'
URL_PREFIX = "/"
FLATPAGES_EXTENSION = ".md"
FLATPAGES_AUTO_RELOAD = True
DEBUG = True
FLATPAGES_ROOT = os.path.abspath(pages_root)
DEFAULT_TEMPLATE = 'page.html'
PAGES_ROOT='data'
STATIC_ROOT='static'