use application factory, WIP
This commit is contained in:
parent
e6bc4928c9
commit
38e5ef85c0
17 changed files with 200 additions and 120 deletions
6
realms/modules/wiki/hooks.py
Normal file
6
realms/modules/wiki/hooks.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from flask import g, current_app
|
||||
from .models import Wiki
|
||||
|
||||
|
||||
def before_request():
|
||||
g.current_wiki = Wiki(current_app.config['WIKI_PATH'])
|
Loading…
Add table
Add a link
Reference in a new issue