본문 바로가기

django

(3)
Building a Blog with Python: A Step-by-Step Guide Creating a blog using Python can be a great way to share your thoughts, ideas, and work with others. Here is a simple guide to help you get started with building your own blog using Python. Choose a Python framework: There are several popular Python frameworks that can be used for web development, such as Flask and Django. Flask is a lightweight framework that is easy to get started with, while ..
flask-restplus nginx proxy_pass 했을때 swaggerui가 안보일때 보통 flask를 쓸떄, gunicon에 묶은다음 nginx에서 proxy_pass로 넘겨쓰는 케이스가 있습니다 이때 swaggerui를 못찾을때가 있는데, nginx.conf에 해당 내용을 넣어줘야 합니다 location /swaggerui { proxy_pass http://127.0.0.1:8080/swaggerui; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; } https://github.com/noirbizarre/flas..
flask ImportError: cannot import name 'cached_property' from 'werkzeug' error 해결 항상 시간이 쫓긴다는건 핑계지만, 이번에는 Django 로 하고 싶었지만, 결국 시간 문제로 손에 익은 Flask로 하게 되네요 이제 SpringBoot는 다 까먹은듯, 다시 해야될것 같긴한데. Spring에서 쓰던 Swaggle이 Flask에도 있었으면 좋겠다고 생각했는데, 그게 Flask-restplus 입니다 pip install flask-restplus 를 설치하면 바로 이용할수 있습니다. 이때 flask도 같이 설치가 됩니다. 그런데 문제가 flask-restplus를 시작하면 다음과 같은 오류가 발생합니다. ImportError: cannot import name 'cached_property' from 'werkzeug' git쪽에 관련된 오류가 리포트 되는것 같은데 좀다 다른웹을 찾아보면..