Skip to content

sys3948/flask_blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask_blog

해당 페이지의 db 모델은 아래의 이미지 이다.(수정 2019/08/10)

flasky

이미지에 존재하는 테이블의 타입은 다음과 같이 설명한다.(수정 2019/07/17)

table_name : follows
column_name type
follower_id int
followed_id int
timestamp datetime
table_name : users
column_name type
id int
email varchar(64)
username varchar(64)
password_hash varchar(225)
location text
about_me text
member_since datetime
profile_filename varchar(200)
post_count int
follow_count int
following_count int
table_name : posts & deletepost
column_name type
id int
author_id int
name varchar(200)
timestamp datetime
comment_count int
table_name : comments & deletecomments
column_name type
id int
author_id int
post_id int
body text
timestamp datetime
groupnum int
parent int

Table을 Flask Shell로 생성하기

  1. flask_app = flasky.py
  2. flask shell
>>> db.create_all()

About

Flask로 만든 Blog Post

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages