Fix staré Django
This commit is contained in:
parent
2ed70b3673
commit
c4d533c870
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ def vzhled(request):
|
||||||
return {'noc' : noc}
|
return {'noc' : noc}
|
||||||
|
|
||||||
def april(req):
|
def april(req):
|
||||||
if 'X-April' in req.headers:
|
if 'HTTP_X_APRIL' in req.META:
|
||||||
try:
|
try:
|
||||||
year = int(req.headers['X-April'])
|
year = int(req.META['HTTP_X_APRIL'])
|
||||||
return {'april': year}
|
return {'april': year}
|
||||||
except:
|
except:
|
||||||
pass # Fall-back to regular behaviour
|
pass # Fall-back to regular behaviour
|
||||||
|
|
Loading…
Reference in a new issue