본문 바로가기
반응형

Programming40

[Python] flask 저장 후 자동 갱신(재시작) - debug mode 안녕하세요. 오늘은 flask 저장 후 자동 갱신(재시작) - debug mode에 대해 알아보려고 합니다. 서버를 올리고 파일을 수정하여도 바로 재실행이 되지 않아서 서버를 재실행해야 적용이 되는 경우가 많으셨을 겁니다. 해당 문제도 이전에 소개드린 것 처럼 두 가지의 방법이 존재합니다.  1. app.run 을 활용한 debug mode 실행 # app.pyfrom flask import Flaskapp = Flask(__name__)@app.route('/')def hello(): return 'Hello, JeeU World!'if __name__ == "__main__": app.run(host="0.0.0.0", port=8000, debug=True).. 2024. 4. 29.
[Python] flask host 및 port 변경 안녕하세요. 오늘은 flask host 및 port 변경에 대해 알아보려고 합니다. host 및 port를 변경하는 방법에는 두 가지가 존재합니다. 1. app.run 을 활용한 포트 변경 아래의 코드를 작성하고 app.py 파일을 실행시켜주시면 아래의 결과처럼 127.0.0.1:8000, 192.168.35.99:8000 이라는 웹서버를 활용하실 수 있습니다 !# app.pyfrom flask import Flaskapp = Flask(__name__)@app.route('/')def hello(): return 'Hello, JeeU World!'if __name__ == "__main__": app.run(host="0.0.0.0", port=8000, debug.. 2024. 4. 28.
[React] 리액트(React) 포트 설정 변경 안녕하세요. 오늘은 리액트(React) 포트 설정 변경에 대해서 알아보도록 하겠습니다. 리액트를 처음으로 설치하고 실행을 하게 된다면 react 기본 포트인 3000번 포트로 실행이 되게끔 되어 있습니다. 해당 포트를 3003번으로 수정할 수 있게 설정을 바꿔보도록 하겠습니다. 1. set port=3003 set port=3003 && npm start 2. config 설정 변경 start 부분에 set port=3003 && 를 추가 "scripts": { "start": "set port=3003 && react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts ej.. 2024. 4. 14.
[Python] Selenium 버전 에러 해결 방법 안녕하세요. 오늘은 Selenium 버전 에러 해결 방법에 대해 알아보려고 합니다. from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager options = Options() driver = webdriver.Chrome(service=Service(executable_path=ChromeDriverManager().install()), options=options) driver.get("https://www.na.. 2023. 11. 3.
플러터(flutter) - single dex file (mergeExtDexDebug) 오류 안녕하세요. 오늘은 플러터(flutter) - single dex file (mergeExtDexDebug) 오류에 대해서 알아보려고 합니다. 에러 메시지 ERROR:D8: Cannot fit requested classes in a single dex file (# methods: 79108 > 65536) com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools.. 2023. 10. 2.
파이썬 플라스크 (Python flask) 설치 및 사용법 안녕하세요. 오늘은 파이썬 플라스크 (Python flask) 설치 및 사용법에 대해 알아보려고 합니다! 플라스크(flask)란? 파이썬 기반으로 작성된 마이크로 웹 프레임 워크(Micro Web Framework)으로 웹 서버나 API를 만들 때 사용합니다. 한마디로 쉽게 쓸 수 있는 웹 서버입니다! 파이썬 설치 방법은 아래와 같습니다. 2021.10.19 - [Programming/Python] - [Python] 파이썬 설치 및 실행 방법 [Python] 파이썬 설치 및 실행 방법 안녕하세요. 이번에는 파이썬 설치하는 법을 알려드릴건데요. 파이썬은 최신 버전보다는 한단계 낮은 릴리즈 버전을 다운받는것을 추천드립니다. ex) 3.10.x 이 최신이라면 3.9.x를 추천 드립니다. jeeu147.tis.. 2023. 9. 17.