[apache2] apache2 django 연동시 필독!!!

최승언·2022년 10월 14일
0

apache2

목록 보기
1/5
post-thumbnail

에러코드
[error][wsgi:error] if (_wrapped := self._wrapped) is empty: SyntaxError: invalid syntax

django와 apache를 연동시 wsgi라는 표준 게이트웨이 인터페이스를 사용하게 된다. 만약 000-default.conf 파일을 모두 수정하고 service apache2 start 명령어로 수행했는데 위와 같은 에러가 발생한다면 django 버젼을 3.2.6 버젼으로 낮춰서 사용하도록 한다.

※ 에러는 000-default.conf 파일에 지정한 error.log 파일로 확인하자.

pip uninstall django
pip install django==3.2.6
profile
작업하다가 막힌부분을 기록하는 곳.

0개의 댓글