def fillContext(opts, req):
"""
Given a set of already filled in options for a context render, fill in some of the additional
details.
"""
nopts = {
"version": settings.VERSION,
"request": req
}
for (k, v) in nopts.items():
if k not in opts:
opts[k] = v
return opts
评论列表
文章目录