
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
방금전 아래 질문이 닫혀버려 새로 질문드립니다.
저장은 여러번 했는데도 잘 안되어서요..
터미널 내용입니다.
%
inhyesong@INHYEui-MacBookPro projects % /usr/bin/python3 /Users/inhyesong/Desktop/projects/01.prac/app.py
hello
inhyesong@INHYEui-MacBookPro projects % pip install flask
zsh: command not found: pip
inhyesong@INHYEui-MacBookPro projects % python3 -m venv venv
inhyesong@INHYEui-MacBookPro projects % pip install flask
zsh: command not found: pip
inhyesong@INHYEui-MacBookPro projects % /Users/inhyesong/Desktop/projects/venv/bin/python /Users/inhyesong/Desktop/projects/01.prac/app.py
* Serving Flask app 'app'
* Debug mode: on
Address already in use
Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.
On macOS, try disabling the 'AirPlay Receiver' service from System Preferences -> Sharing.
inhyesong@INHYEui-MacBookPro projects % /Users/inhyesong/Desktop/projects/venv/bin/python /Users/inhyesong/Desktop/projects/01.prac/app.py
* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:5001
* Running on http://192.168.11.5:5001
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 137-505-903
127.0.0.1 - - [16/Jul/2023 16:05:21] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [16/Jul/2023 16:05:21] "GET /favicon.ico HTTP/1.1" 404 -
* Detected change in '/Users/inhyesong/Desktop/projects/01.prac/app.py', reloading
* Restarting with stat
* Debugger is active!
* Debugger PIN: 137-505-903
127.0.0.1 - - [16/Jul/2023 16:05:49] "GET / HTTP/1.1" 200 -
* Detected change in '/Users/inhyesong/Desktop/projects/01.prac/app.py', reloading
* Restarting with stat
Traceback (most recent call last):
File "/Users/inhyesong/Desktop/projects/01.prac/app.py", line 9, in <module>
def home():
File "/Users/inhyesong/Desktop/projects/venv/lib/python3.9/site-packages/flask/scaffold.py", line 436, in decorator
self.add_url_rule(rule, endpoint, f, **options)
File "/Users/inhyesong/Desktop/projects/venv/lib/python3.9/site-packages/flask/scaffold.py", line 51, in wrapper_func
return f(self, *args, **kwargs)
File "/Users/inhyesong/Desktop/projects/venv/lib/python3.9/site-packages/flask/app.py", line 1059, in add_url_rule
raise AssertionError(
AssertionError: View function mapping is overwriting an existing endpoint function: home
inhyesong@INHYEui-MacBookPro projects %
보고

계신 화면 전체를 캡처해 주시면, 튜터님들이 빠르게 상황을 이해할 수 있어요.

