get csrf_token value in django template

# get csrf token value in template
{{ csrf_token }}
# render a input form element 
{% csrf_token %}

Here is what the above code is Doing:
1. The first line imports the function that generates the CSRF token.
2. The second line gets the CSRF token and makes it available in the template.
3. The third line renders a HTML input element with the CSRF token.