9 lines
No EOL
196 B
Python
9 lines
No EOL
196 B
Python
from datetime import datetime
|
|
|
|
def current_year(request):
|
|
"""
|
|
Context processor to add current year to all templates
|
|
"""
|
|
return {
|
|
'current_year': datetime.now().year
|
|
} |