[Pythonanywhere] This virtualenv seems to have the wrong Python version.

Infinity-blue·2023년 7월 4일
0

아래링크를 따라 똑같이 실행했는데 서버를 접속할 시 로컬에서는 뜨지 않았던 Refused to connect 오류가 뜬다.
https://velog.io/@hyereen/djangodeploypythonanywhere


Attempts:

파이썬을 재설치 및 장고 프로젝트의 settings.py에서 CORS_ALLOWED_ORIGINS 및 ALLOWED_HOSTS 에 해당 서버주소를 넣었지만 문제는 지속되었다.

Solution:

Pythonanywhere 공식사이트
https://blog.devgenius.io/django-tutorial-deploy-a-django-app-to-pythonanywhere-for-free-269ec4e7b263)


Things to remember:

  • 프로젝트 폴더는 /home/<"username">/ 경로에 저장한다. (wsgi.py 참고)
  • 가상환경은 /home/<"username">/.virtualenv/ 경로에 저장한다.

0개의 댓글