import json from urlparse import parse_qs from wsgiref.simple_server import make_server import os import re from django.http import HttpResponse from django.conf import settings settings.configure() # 定义函数,参数是函数的两个参数,都是python本身定义的,默认就行了. def applicat…