摘要: ```python from django.test import TestCase # Create your tests here. ''' 当你想单独测试django中某一个py文件时,你需要手动配置测试文件 在manage.py文件中拷贝前四行代码,另外再加三行代码 添加: import django django.setup() from app01 import models ''' 阅读全文
posted @ 2019-11-29 07:54 大海一个人听 阅读(188) 评论(0) 推荐(0) 编辑