我希望下一个模板有效:
{% if not form.errors and request.method == 'POST' %}
<span id='saved'>Data has stored.</span>
<script type='text/javascript'>
setTimeout( function() { $( '#saved' ).fadeOut( 'slow' ); }, 2000 );
</script>
{% endif %}
如何在模板中获取request.method的访问权限?