Unit tests fail to load with Django in Visual Studio
问题 I am using Django 1.10.5 with Visual Studio 2015. My project is running in a virtual environment. I am following the beginner tutorial here. The project runs fine, but when I try to run unit tests from the Visual Studio "Test Explorer" they fail with to error: "django.core.exceptions.AppRegistryNotReady: App aren't loaded yet." This is my test class: import datetime from django.test import TestCase from django.utils import timezone from .models import Question class QuestionTestCase(TestCase)