bad gateway (2) 썸네일형 리스트형 django에서 502 bad gateway... 문제 django로 개발하고 server로 업로드후, 설정을 다 마치고 확인을 하려는데, 502 bad gateway가 뜬다.. 대안 및 해결방법 uwsgi.log를 확인해보니, 어디에 문제가 있는지 나타난다. ImportError: Could not import settings 'xxxxx.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named djcelery[pid: 10651|app: 0|req: 1/1] 175.196.150.153 () {40 vars in 728 bytes} [Thu Apr 30 14:39:27 2015] GET / => generated 0 bytes in 4 m.. django에서 cloud db서버의 mysql 접근시 502 bad gateway 오류가 난다면.. 이전 글에서 kt ucloud에서 virtualenv위에 django와 nginx를 설치하였었다. (http://abipictures.tistory.com/918)그리고, django에서 프로젝트를 생성했을때 정상적으로 동작되는 것을 확인도 하였다. 그렇게 django app을 개발하면서 db를 사용하게 될텐데, db서버도 kt ucloud에 신청하였다.그리고, django의 settings.py를 아래처럼 수정하였다. DATABASES = { 'default': { 'ENGINE':'django.db.backends.mysql', 'NAME':'(신청한 db명)', 'USER':'DB이용자 ID', 'PASSWORD':'DB이용자 암호', 'HOST':'KT UCLOUD의 DB서버 Private IP .. 이전 1 다음