擅长:python、mysql、java
<p>不,这在旧版本中是可能的,但在Django 1.7中被贬值了。对于运行古代版本的Django考古学家,继续阅读。</p>
<p>从<a href="https://docs.djangoproject.com/en/1.4/ref/request-response/#django.http.HttpRequest.REQUEST" rel="nofollow">documentation</a>:</p>
<p>HttpRequest.REQUEST请求</p>
<p>为了方便起见,一个类似字典的对象先搜索POST,然后再搜索GET。灵感来自PHP的$请求。</p>
<p>例如,如果GET={“name”:“john”}和POST={“age”:“34”},则REQUEST[“name”]将是“john”,REQUEST[“age”]将是“34”。</p>
<p>强烈建议您使用GET和POST而不是REQUEST,因为前者更明确。</p>