开发者

Django Flatpages Variables

开发者 https://www.devze.com 2023-01-12 16:33 出处:网络
Is it possible to enter {{ variable }} into a dja开发者_运维知识库ngo flatpage and if so, how?Never tried this. The documentation says that Flatpage templates are passed a single context variable, fla

Is it possible to enter {{ variable }} into a dja开发者_运维知识库ngo flatpage and if so, how?


Never tried this. The documentation says that Flatpage templates are passed a single context variable, flatpage, which is the flatpage object (emphasis mine). Based on this I'd venture a guess that this is not possible. There might be workarounds (such as writing your own wrapper over the views) but I haven't see them in use.

0

精彩评论

暂无评论...
验证码 换一张
取 消