flask 트리 구성

url 셋팅 및 테스트
This commit is contained in:
김민구
2024-01-05 18:23:09 +09:00
parent 4daef569c5
commit 5f9592ac0b
8 changed files with 157 additions and 46 deletions

16
templates/form.html Normal file
View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<body>
<h2>WMS</h2>
<form action="/method" method="POST">
<label for="fname">사번:</label><br>
<input type="text" id="fname" name="num"><br>
<label for="lname">이름:</label><br>
<input type="text" id="lname" name="name"><br><br>
<input type="submit" value="확인">
</form>
</body>
</html>

1
templates/hello.html Normal file
View File

@@ -0,0 +1 @@
hello no1

13
templates/myimage.html Normal file
View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<body>
<h2>도라에몽</h2>
<a href="/hellos/도라에몽">
<img src="static/img/dora.png">
</a>
<a href={{ url_for('hellos', name='도라에몽') }}>
<img src={{ url_for('static', filename='img/dora.png') }}>
</a>
</body>
</html>

8
templates/naver.html Normal file
View File

@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<body>
<script>
location.href="https://www.naver.com/";
</script>
</body>
</html>