swppfall2019 icon indicating copy to clipboard operation
swppfall2019 copied to clipboard

[HW3] Should we handle urls not ending in a slash?

Open davin111 opened this issue 5 years ago • 2 comments

실습 시간에 언급되었던대로, urlpatterns를 모두 '/'로 끝나게 하였습니다. 이 때, 예를 들어 ARC로 http://localhost:8000/api/signup('/'으로 끝나지 않은)에 POST 요청을 보내면 RuntimeError: You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. ...과 같은 RuntimeError(500)이 나타납니다. 이러한 경우도 404 등으로 처리해주어야 하는 것인지 궁금합니다.

davin111 avatar Oct 27 '19 02:10 davin111

저희가 확인을 할 때는 다 /로 끝나게 할 것이라서 그 부분은 자유롭게 처리하셔도 됩니다

ktaebum avatar Oct 27 '19 02:10 ktaebum

HW1, HW2 클레임을 통해 테스트 케이스의 일부를 확인하신 분들은 알겠지만 저희가 감점을 위한(?) test case는 넣지 않습니다 🙂

ktaebum avatar Oct 27 '19 02:10 ktaebum