CBV class based view用于数据分离 在views.py中创建一个Index的class,在类中分别定义“GET”和“POST”方法 在urls.py中设置路由规则 因为下面要使用第三方工具进行post请求,所以要屏蔽掉csrf认证 使用“Postman”进行post请求