Compare commits
No commits in common. "0e24c1d9add98d95533d8884d5a23be7af72d10c" and "60346d68390bb4c5f0f7b4d01989a2ee7cb43b2c" have entirely different histories.
0e24c1d9ad
...
60346d6839
1 changed files with 0 additions and 3 deletions
|
@ -1,13 +1,10 @@
|
||||||
from django.http import HttpResponseForbidden
|
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
|
|
||||||
|
|
||||||
def csrf_error(request, reason):
|
def csrf_error(request, reason):
|
||||||
""" Jednoduchý „template_view“ (třída to být nesmůže) pro CSRF chyby """
|
|
||||||
return render(
|
return render(
|
||||||
request, 'various/403_csrf.html',
|
request, 'various/403_csrf.html',
|
||||||
{"url": request.META["HTTP_REFERER"], "reason": reason},
|
{"url": request.META["HTTP_REFERER"], "reason": reason},
|
||||||
status=HttpResponseForbidden.status_code,
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue