Browse Source

Apríl není pořád :-D

middleware_test
Pavel "LEdoian" Turinsky 4 years ago
parent
commit
a68e04abe0
  1. 1
      various/context_processors.py

1
various/context_processors.py

@ -1,5 +1,4 @@
def april(req): def april(req):
return {'april': 2021}
if 'X-April' in req.headers: if 'X-April' in req.headers:
try: try:
year = int(req.headers['X-April']) year = int(req.headers['X-April'])

Loading…
Cancel
Save