app-part
创建第一个Django app-part5
# 自动化测试 ## 开始第一个测试 ### 首先有一个bug `python3 manage.py shell` ### 创建一个测试来暴露这个 bug > 将下面的代码写入 polls 应用里的 tests.py 文件内 点击查看代码 ```python from django.test imp ......
创建第一个Django app-part3
## 编写更多的视图 > 编辑polls/views.py 点击查看代码 ``` from django.shortcuts import render from django.http import HttpResponse # Create your views here. def index( ......