1.cs253
https://classroom.udacity.com/courses/cs253
webapp2
Install WebOb, Paste and webapp2¶
We need three libraries to use webapp2: WebOb, for Request and Response objects, Paste, for the development server, and webapp2 itself.
Type this to install them using the active virtual environment (see Installing virtualenv):
$ pip install WebOb
$ pip install Paste
$ pip install webapp2
https://webapp2.readthedocs.io/en/latest/tutorials/quickstart.nogae.html#tutorials-quickstart-nogae
Lesson 2a - Templates
2.廖雪峰 《python教程》
https://www.liaoxuefeng.com
day04
INSERT INTO `users`(`id`, `email`, `passwd`, `admin`, `name`, `image`, `created_at`) VALUES('1','aa@aa.com','123456',1,'aa','about:blank',unix_timestamp())
day11
我们选择Vue这个简单易用的MVVM框架来实现创建Blog的页面templates/manage_blog_edit.html
day14
后端API包括:
-
获取日志:GET /api/blogs
-
创建日志:POST /api/blogs
-
修改日志:POST /api/blogs/:blog_id
-
删除日志:POST /api/blogs/:blog_id/delete
-
获取评论:GET /api/comments
-
创建评论:POST /api/blogs/:blog_id/comments
-
删除评论:POST /api/comments/:comment_id/delete
-
创建新用户:POST /api/users
-
获取用户:GET /api/users
管理页面包括:
-
评论列表页:GET /manage/comments
-
日志列表页:GET /manage/blogs
-
创建日志页:GET /manage/blogs/create
-
修改日志页:GET /manage/blogs/
-
用户列表页:GET /manage/users
用户浏览页面包括:
-
注册页:GET /register
-
登录页:GET /signin
-
注销页:GET /signout
-
首页:GET /
-
日志详情页:GET /blog/:blog_id
把所有的功能实现,我们第一个Web App就宣告完成!