mirror of
https://github.com/django/django.git
synced 2025-12-10 11:25:10 +00:00
Refs #36311 -- Unified spelling of "flatpage" in docs/ref/contrib/flatpages.txt.
This commit is contained in:
parent
8bca33f68a
commit
abbcef5280
1 changed files with 9 additions and 10 deletions
|
|
@ -242,12 +242,11 @@ Flatpage templates
|
|||
==================
|
||||
|
||||
By default, flatpages are rendered via the template
|
||||
: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 set the template name as the field ``template_name`` on the
|
||||
``FlatPage`` object.
|
||||
: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 flatpage via the Python API you can 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, create a :file:`flatpages` directory containing a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue