mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 20:24:31 +08:00
9 lines
228 B
Python
9 lines
228 B
Python
from django.http.request import HttpRequest
|
|
from django.http.response import HttpResponseForbidden
|
|
|
|
|
|
def csrf_failure(
|
|
request: HttpRequest,
|
|
reason: str = ...,
|
|
template_name: str = ...
|
|
) -> HttpResponseForbidden: ... |