How can I get the reverse url for a Django Flatpages template

后端 未结 10 1176
情深已故
情深已故 2021-01-31 10:33

How can I get the reverse url for a Django Flatpages template

10条回答
  •  攒了一身酷
    2021-01-31 11:08

    According to this django documentation for flatpages

    You can simply do

    {% load flatpages %}
    {% get_flatpages as flatpages %}
    
    

    In your template.

提交回复
热议问题