File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -126,8 +126,12 @@ Flatpage templates
126
126
==================
127
127
128
128
By default, flatpages are rendered via the template
129
- :file:`flatpages/default.html`, but you can override that for a particular
130
- flatpage.
129
+ :file:`flatpages/default.html`, but you can override that for a
130
+ particular flatpage: in the admin, a collapsed fieldset titled
131
+ "Advanced options" (clicking will expand it) contains a field for
132
+ specifying a template name. If you're creating a flat page via the
133
+ Python API you can simply set the template name as the field
134
+ ``template_name`` on the ``FlatPage`` object.
131
135
132
136
Creating the :file:`flatpages/default.html` template is your responsibility;
133
137
in your template directory, just create a :file:`flatpages` directory
You can’t perform that action at this time.
0 commit comments