from flask import Flask, request, redirect
@app.route('/delete/<int:id>/', methods=['POST'])
def delete(id):
for topic in topics:
if topic['id'] == id:
topics.remove(topic)
break;
return redirect('/')
SQLite3 설치
https://sqlitestudio.pl/
관계형 데이터베이스는 표다.
그리고 표를 제어할 때는 SQL 명령문을 통해 실행한다.
Primary key
: 고유한 식별자로 하나의 값만 들어올 수 있음. 자동으로 1씩 증가
flask에 대한 개념 이해가 어려움
뜬 구름 잡기.. 해결 중...
너무 어렵다...