1.doc - https://docs.djangoproject.com/en/1.6/topics/settings/
from django.conf import settings # 加载settings配置
import os os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' # 正式环境,告诉系统使用哪个 settings文件
from django.conf import settings if settings.DEBUG: # Do something # 利用debug模式的查错
2. from django.conf import settings vs import settings
http://stackoverflow.com/questions/19976115/whats-the-difference-between-from-django-conf-import-settings-and-import-set
django.conf.settings 是一个配置文件的class
3. 在django下,同级目录的加载,可以通过 from xx import a,这样的 sys path是怎么处理的呢?
值得学习