今天在学习《The Django Book 2.0--中文版》第四章模版的时候,在实现代码
>>> from django import template >>> t = template.Template('My name is {{ name }}.') >>> c = template.Context({'name': 'Adrian'}) >>> print t.render(c) My name is Adrian. >>> c = template.Context({'name': 'Fred'}) >>> print t.render(c) My name is Fred.
时出现DJANGO_SETTINGS_MODULE is undefined问题,最终找到解决办法,这里转载
Django开发中DJANGO_SETTINGS_MODULE is undefined解决方案
作者:JavaCrazyer
转载于:https://blog.51cto.com/knoix/1681523