first commit
This commit is contained in:
commit
b71ea45681
898 changed files with 138202 additions and 0 deletions
9
common/context_processors.py
Normal file
9
common/context_processors.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from datetime import datetime
|
||||
|
||||
def current_year(request):
|
||||
"""
|
||||
Context processor to add current year to all templates
|
||||
"""
|
||||
return {
|
||||
'current_year': datetime.now().year
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue