-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
33 lines (26 loc) · 790 Bytes
/
Copy pathapp.py
File metadata and controls
33 lines (26 loc) · 790 Bytes
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
32
33
from flask import Flask, render_template
# Flask 애플리케이션 초기화
app = Flask(__name__)
# 홈 화면 라우팅 - 랜딩 페이지
@app.route('/')
def home():
return render_template('home.html')
# 국어 과목 페이지 라우팅
@app.route('/korean')
def korean():
return render_template('korean.html')
# 수학 과목 페이지 라우팅
@app.route('/math')
def math():
return render_template('math.html')
# 사회 과목 페이지 라우팅
@app.route('/social')
def social():
return render_template('social.html')
# 과학 과목 페이지 라우팅
@app.route('/science')
def science():
return render_template('science.html')
if __name__ == '__main__':
# 디버그 모드로 서버 실행
app.run(debug=True, host='127.0.0.1', port=5000)