| | 569 | |
|---|
| | 570 | Dictionary access to ``HttpRequest`` |
|---|
| | 571 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| | 572 | |
|---|
| | 573 | ``HttpRequest`` objects no longer directly support dictionary-style |
|---|
| | 574 | access; previously, both ``GET`` and ``POST`` data were directly |
|---|
| | 575 | available on the ``HttpRequest`` object (e.g., you could check for a |
|---|
| | 576 | piece of form data by using ``if 'some_form_key' in request`` or by |
|---|
| | 577 | reading ``request['some_form_key']``. This is no longer supported; if |
|---|
| | 578 | you need access to the combined ``GET`` and ``POST`` data, use |
|---|
| | 579 | ``request.REQUEST`` instead. |
|---|
| | 580 | |
|---|
| | 581 | It is strongly suggested, however, that you always explicitly look in |
|---|
| | 582 | the appropriate dictionary for the type of request you expect to |
|---|
| | 583 | receive (``request.GET`` or ``request.POST``); relying on the combined |
|---|
| | 584 | ``request.REQUEST`` dictionary can mask the origin of incoming data. |
|---|