内存、内存,还是加内存使用单独的静态文件服务器关闭KeepAlive(如果服务器不提供静态文件服务,如:大文件下载)使用memcached使用select_related()加载关联表数据使用values()过滤不必要的字段查询使用模板cache加载编译的模板 from django.template import loader from django.http import HttpResponse #loads and compiles the template myview_template = loader.get_template('path/to/template.html') def myview(request): # do sth¡ return HttpResponse(myview_template.render( context )) 而不是直接用 render_to_response