如果在visual studio中 启动 django shell 需要在shell中先输入
import django
djingo.setup()
不然报错django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
import django
djingo.setup()
不然报错django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
2017-02-27