Django ImportError: Settings cannot be imported
使用Django时在命令行中敲击Python命令进入交互模式,如果直接如下操作: from django.template import Template ,Context t = Template(”Test is {{test}}”) 会导致: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. ...