from django import template # from django.conf import settings #导入所有的settings配置 from collections import OrderedDict #有序字典