conf_site/core/views.py
def csrf_failure(request, reason=""):
    """
    Custom view for users who encounter CSRF errors.

    https://docs.djangoproject.com/en/1.9/ref/settings/#csrf-failure-view

    When we upgrade to Django 1.10, this view can be removed.

    """
    response = TemplateResponse(
        request=request, template="403_csrf.html", status=403
    )
    return response

    Custom view for users who encounter CSRF errors.

    https://docs.djangoproject.com/en/1.9/ref/settings/#csrf-failure-view

    When we upgrade to Django 1.10, this view can be removed.

    
Custom view for users who encounter CSRF errors.

When we upgrade to Django 1.10, this view can be removed.
Custom view for users who encounter CSRF errors . When we upgrade to Django 1 . 10 this view can be removed .
def csrf_failure(request, reason=""):
    response = TemplateResponse(
        request=request, template="403_csrf.html", status=403
    )
    return response
def csrf_failure ( request , reason = "" ) : response = TemplateResponse ( request = request , template = "403_csrf.html" , status = 403 ) return response
Custom view for users who encounter CSRF errors.
Custom view for users who encounter CSRF errors .
"""
    Custom view for users who encounter CSRF errors.

    https://docs.djangoproject.com/en/1.9/ref/settings/#csrf-failure-view

    When we upgrade to Django 1.10, this view can be removed.

    """
request
reason