Q:

Differing Reponse Codes from Django Application

For both GET and POST requests I simply want to print the associated QueryDict in my test view: 
if request.method == 'GET':
    print request.GET

if request.method == 'POST':
    print request.POST

When I make requests using both methods I get different response codes. I could use some help.

A:

The post request has triggered Django's CSRF protection so you are getting a 403 Forbidden response.
Usually, it means that you need to include the CSRF template in your template.
In this case, because you are making requests from the shell, it might be appropriate to use the csrf_exempt decorator on this view to disable the CSRF protection. 

