def csrf_token(request):
 csrf_token = unicode(csrf(request)['csrf_token'])
 return str.format("<input type='hidden' name='csrfmiddlewaretoken' value='{0}' />", csrf_token)

def csrf_token ( request ) : csrf_token = unicode ( csrf ( request ) [ 'csrf_token' ] ) return str . format ( "<input type='hidden' name='csrfmiddlewaretoken' value='{0}' />" , csrf_token )
returns the rendered common footer .