more commits..
This commit is contained in:
parent
6dda02141e
commit
7823be6481
20 changed files with 1835 additions and 631 deletions
9
app/context_processors.py
Normal file
9
app/context_processors.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from datetime import datetime
|
||||
|
||||
def utility_processor():
|
||||
return {
|
||||
'current_year': datetime.now().year
|
||||
}
|
||||
|
||||
def init_app(app):
|
||||
app.context_processor(utility_processor)
|
Loading…
Add table
Add a link
Reference in a new issue