context.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:django-wechat-api 作者: crazy-canux 项目源码 文件源码
def __init__(self, dict_=None, autoescape=True,
            current_app=_current_app_undefined,
            use_l10n=None, use_tz=None):
        if current_app is not _current_app_undefined:
            warnings.warn(
                "The current_app argument of Context is deprecated. Use "
                "RequestContext and set the current_app attribute of its "
                "request instead.", RemovedInDjango20Warning, stacklevel=2)
        self.autoescape = autoescape
        self._current_app = current_app
        self.use_l10n = use_l10n
        self.use_tz = use_tz
        self.render_context = RenderContext()
        # Set to the original template -- as opposed to extended or included
        # templates -- during rendering, see bind_template.
        self.template = None
        super(Context, self).__init__(dict_)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号