开发者

Django Flatpages Variables

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜