GodDrinkTeJAVA

Results 12 comments of GodDrinkTeJAVA

Team17의 이준희입니다. [email protected] [email protected] [email protected] 추가 크레딧 요청드립니다.

Tu(to)ring Machine Automate your match, for both tutor and tutee.

그리고 제 기억이 맞다면 뒤에 있는 sessionid는 처음으로 제가 받았던 sessionid로 기억합니다..

@ktaebum Cookie의 첫번째 줄에 있는 `sessionid=2sooebg5m25ki..` 부분이 csrftoken인가요? 두번째 줄의 `csrftoken=wC30BN6..` 부분이 csrftoken인 거 같이 보이는데...

뒤에 있는 sessionid가 signin에서 어떠한 값을 가져와도 바뀌질 않습니다. 아마 #176 이 이로 인한 것이었는지 이슈 등록하고 RESTED로 테스트를 해보니 정상적으로 작동하는 것 같습니다.... 답변 주셔서 감사합니다.

``` def setUp(self): test_user = User.objects.create_user(username="test", password="test") User.objects.create_user(username="another", password="another") test_article = Article.objects.create(title="test title", content="test content", author=test_user) Comment.objects.create(article=test_article, content="test comment", author=test_user) def test_get_article(self): client = Client() response = client.get('/api/article/') self.assertEqual(response.status_code, 401)...

![image](https://user-images.githubusercontent.com/46532449/67617595-8aed6880-f81f-11e9-82f9-5f385a005fc3.png) ![image](https://user-images.githubusercontent.com/46532449/67617604-9e98cf00-f81f-11e9-84ed-88aa460dec72.png) ![image](https://user-images.githubusercontent.com/46532449/67617618-bc663400-f81f-11e9-8204-f5f1c3165de6.png) ![image](https://user-images.githubusercontent.com/46532449/67617620-c5570580-f81f-11e9-9cdc-318d4d7c5d1d.png) (other는 테스트상으로 만든 username입니다. 위의 print 부분에서 출력이 되고 있습니다)

``` def signup(request): if request.method == 'POST': try: req_data = json.loads(request.body.decode()) username = req_data['username'] password = req_data['password'] except (KeyError, json.JSONDecodeError) as e: return HttpResponseBadRequest() User.objects.create_user(username=username, password=password) return HttpResponse(status=201) else: return...

@uyw4687 204를 리턴합니다. 8ㅅ8...