백엔드, flask를 배우고, 글리치 소스 적용
글리치 홈페이지(https://glitch.com/)에서 다양한 소스를 찾을 수 있다.
@app.route("/read/<int:id>/")
def read(id)
print(id):
return '''
<html>
<body>
<h1><a href="/">WEB</a></h1>
<ol>
<li><a href="/read/1/">html</a></li>
<li><a href="/read/2/">css</a></li>
<li><a href="/read/3/">js</a></li>
</ol>
<h2>read</h2>
Hello, read
</body>
</html>
def create():
content = '''
<form action="/create/">
<p><input type="text" name="q"(서버로이동하는이름) placeholder="title"></p>
<p><textarea name="body" placeholder="body"></textarea></p>
<p><input type="submit" value="create"></p>
<form>
...
return template(content)
java와 언어가 달라서 어려웠다.
설치하고 알아야할 프로그램이 점점 늘어나고 있다.
html css 로 홈페이지를 만들어보겠다는 생각이었는데
많은 언어를 배우게 되니 따라가기 급급하다
빨리 홈페이지에 적용시켜봐야겠다.