Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.context_processor
- def now():
- return dict(now=datetime.now())
- Then in your template :
- {{ now }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement