Inflearn brand logo image

Inflearn Community Q&A

dannyryu's profile image
dannyryu

asked

Complete Guide to Python/Django Web Service Development with React

Creating a project and setting up basic settings

AttributeError: 'SafeExceptionReporterFilter' object has no attribute 'get_safe_settings'

Resolved

Written on

·

1.5K

0

django-react spa 강의 중 프로젝트 생성 및 기본 환경 설정 과정 중에서   

get_safe_settings = get_default_exception_reporter_filter().get_safe_settings


AttributeError: 'SafeExceptionReporterFilter' object has no attribute 'get_safe_settings'

 

위와 같은 에러가 발생하였습니다.

conda 환경 내

Django==3.0.14

django-debug-toolbar==3.5.0

입니다.

강사님께서 말씀하신 requirements는 아직 익숙하지 않을 것 같아 분리해서 하지 않았습니다. 


위에가 오류가 난 코드입니다.

----------------

 

 

위와 같이 urls.py 부분의 디버그 툴바 링크와 settings.py 내부 debugtoolbar 관련 내용을 없애면 
실행이 됩니다 

구글링을 하였으나 이유를 모르겠습니다 ㅠㅠ

dockerdjangopythonreact

Answer 1

0

pyhub님의 프로필 이미지
pyhub
Instructor

안녕하세요.

django와 django-debug-toolbar의 버전 이슈입니다.

제가 다른 질문에서 이 이슈에 대한 답변을 써두었습니다.

https://www.inflearn.com/questions/614863

참고 부탁드리고, 해결되셨다면 해결됨으로 질문 상태를 변경 부탁드립니다.

화이팅입니다. :-)

dannyryu's profile image
dannyryu

asked

Ask a question