Notice
Recent Posts
Recent Comments
Link
«   2025/11   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Tags
more
Archives
Today
Total
관리 메뉴

travel data science

[Django] 'super' object has no attribute 'status_code' 본문

Python study

[Django] 'super' object has no attribute 'status_code'

가방이 2022. 2. 10. 15:40

super(상위 클래스명, self).차일드 메서드명(매개변수)

이 형태를 지키지 않아서 생기는 에러

 

나의 경우,

super(SubscriptionView, self).get(request, *args, **kwargs)

를 사용해야 하는데

 

super(SubscriptionView, self)

이런 형태로 사용해버려서 생긴 에러이다.