
IT/파이썬 2023. 4. 28.
Django - Rest-framework API 서버 구현 with Django Ninja
Django Ninja의 주요 장점으로는 다음과 같은 것들이 있습니다 홈페이지에 많은 정보가 있겠죠? 일단은 방문 필수!! https://django-ninja.rest-framework.com/ Django Ninja Django Ninja - Fast Django REST Framework Django Ninja is a web framework for building APIs with Django and Python 3.6+ type hints. Key features: Easy: Designed to be easy to use and intuitive. FAST execution: Very high performance thanks to Pydantic and a django-ninja.rest-..

IT/파이썬 2021. 1. 25.
파이썬 requests 로 POST PUT 처리하기 - Form 데이터 보내기
파이썬 코드로 폼 데이터를 보내 처리하려면, pip install requests 를 통해 requests 를 설치해야 한다. 접속해서 POST, PUT을 처리하는 예제 코드는 아래와 같다. params = { "param1": "test1", "param2": 123, "param3": "한글" } res = requests.post("http://127.0.0.1:5000/handle_post", data=json.dumps(params)) return res.text apt-info.github.io/%EA%B0%9C%EB%B0%9C/python-flask3-post/ (python) flask 3. Post 요청 처리 지난 시간에 이어 Flask로 Post 요청을 처리하는 방법에 대해 알아보겠습니..