티스토리 뷰

 

* Connecting 'user' page

from flask import Flask

app = Flask(__name__)

@app.route('/')
@app.route('/home')
def home():
    return 'Hello, world from Bilient'

@app.route('/user')
def user():
    return "This is user-page"

if __name__=="__main__":
    app.run(host='0.0.0.0', port=3771, debug=True)

 

URL : "123.456.78.9:3771/user", "123.456.78.9:3771/USER"

반응형
반응형
250x250
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함