Browse files

Fixed #11883: Documented how to set a custom template name on a flatp…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6edcd11 commit 1f56ed7319a20f3508a6629d3bca83c523e9d4f3 @ubernostrum ubernostrum committed Mar 3, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −2 docs/ref/contrib/flatpages.txt
@@ -126,8 +126,12 @@ Flatpage templates
By default, flatpages are rendered via the template
-:file:`flatpages/default.html`, but you can override that for a particular
+:file:`flatpages/default.html`, but you can override that for a
+particular flatpage: in the admin, a collapsed fieldset titled
+"Advanced options" (clicking will expand it) contains a field for
+specifying a template name. If you're creating a flat page via the
+Python API you can simply set the template name as the field
+``template_name`` on the ``FlatPage`` object.
Creating the :file:`flatpages/default.html` template is your responsibility;
in your template directory, just create a :file:`flatpages` directory

0 comments on commit 1f56ed7

Please sign in to comment.