Преглед изворни кода

Add template module cache dir.

master
Ben Kurtovic пре 7 година
родитељ
комит
a43bb9b13c
2 измењених фајлова са 3 додато и 0 уклоњено
  1. +1
    -0
      .gitignore
  2. +2
    -0
      calefaction/config.py

+ 1
- 0
.gitignore Прегледај датотеку

@@ -6,6 +6,7 @@ config/*
config/modules/*
data/*
logs/
templates/.cache/

!config/*.sample
!config/modules


+ 2
- 0
calefaction/config.py Прегледај датотеку

@@ -73,6 +73,8 @@ class Config:
"""Install relevant config into the application, including modules."""
app.config["SERVER_NAME"] = self.get("site.canonical")
app.config["PREFERRED_URL_SCHEME"] = self.scheme
app.config["MAKO_MODULE_DIRECTORY"] = str(
self._dir.parent / "templates" / ".cache")
app.secret_key = self.get("auth.session_key")

for module in self.modules:


Loading…
Откажи
Сачувај