跳转到主要内容

上下文额外数据

项目描述

安装

$ [sudo] pip install django-context-extra-view

示例

from django_context_extra_view.views import ContextExtraMixin

class View(ContextExtraMixin,...):
    context_extra = {"my_page":{"active":True}}
{% if my_page.active %}...{% endif %}

readme42.com

项目详情


下载文件

为您的平台下载文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

django-context-extra-view-2020.10.26.tar.gz (1.4 kB 查看散列)

上传时间:

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面