목록Python study (30)
travel data science
TypeError: 'method' object is not subscriptable
request.POST.get['이름']말고 request.POST.get('이름')을 해야 함 또..input type이 file일 때에는 reques.FILES['이름']이라고 해야한다. 헷갈리지 말기....!!!!
Python study
2022. 5. 14. 16:44
nginx 502 Bad Gateway 해결 방법
과부하? 문제 nginx.conf의 http{ } 내에 아래의 코드를 넣어주면 해결됨. http{ ... fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; ... }
Python study
2022. 3. 27. 02:51
gunicorn
gunicorn은 request를 파이썬이 이해할 수 있도록 해주는 WAS느낌..? 좀 더 자세한건 깊게 이해를 해봐야 할 것 같다. https://this-programmer.tistory.com/345 gunicorn은 대체 뭐하는 놈일까 (부제: CGI, WSGI는 대체 뭐냐) gunicorn은 대체 뭐하는 놈일까 (부제: CGI, WSGI는 대체 뭐냐) django를 배포하려고 하면 꼭 gunicorn이나 uWSGI라는 놈과 마주친다. 튜토리얼 보스마냥 이 둘을 마주치지 않고 배포를 할 수는 없는 모냥이 this-programmer.tistory.com
Python study
2022. 3. 25. 15:56