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.
精彩评论