klipstein/dojango — Issue #66: 66 - @expect_post_request should raise HttpResponseNotAllowed 
Author: klipstein
Created: 2011-11-06 13:03:37+00:00
State: open

What steps will reproduce the problem?
1. Add @expect_post_request to a view
2. Make GET reqest to that view

What is the expected output? What do you see instead?
I get HTTP ERROR 500, but it should be 405.

What version of the product are you using? On what operating system?
trunk.

Please provide any additional information below.

Raising HttpResponseNotAllowed(['POST']) instead of plain Exception('...') will solve the issue.

Original link: http://code.google.com/p/dojango/issues/detail?id=66