def setUp(self):
super(APIClientTestCase, self).setUp()
# Django 1.8 and 1.11 need to be configured before we can use
# WSGIRequest and MultiPartParser.
if not django.conf.settings.configured:
django.conf.settings.configure(DEBUG=True)
评论列表
文章目录