Kushal 2018-01-29 13:51:59 -05:00 zatwierdzone przez Matt Westcott
rodzic ebbbd7ad49
commit 4bf6b09873
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -82,7 +82,7 @@ Edit ``home/models.py`` as follows, to add a ``body`` field to the model:
]
``body`` is defined as ``RichTextField``, a special Wagtail field. You
can use any of the `Django core fields <https://docs.djangoproject.com/en/1.8/ref/models/fields/>`__. ``content_panels`` define the
can use any of the `Django core fields <https://docs.djangoproject.com/en/1.11/ref/models/fields/>`__. ``content_panels`` define the
capabilities and the layout of the editing interface. :doc:`More on creating Page models. <../topics/pages>`
Run ``python manage.py makemigrations``, then
@ -97,7 +97,7 @@ to the model. Wagtail uses normal Django templates to render each page
type. By default, it will look for a template filename formed from the app and model name,
separating capital letters with underscores (e.g. HomePage within the 'home' app becomes
``home/home_page.html``). This template file can exist in any location recognised by
`Django's template rules <https://docs.djangoproject.com/en/1.10/intro/tutorial03/#write-views-that-actually-do-something>`__; conventionally it is placed under a ``templates`` folder within the app.
`Django's template rules <https://docs.djangoproject.com/en/1.11/intro/tutorial03/#write-views-that-actually-do-something>`__; conventionally it is placed under a ``templates`` folder within the app.
Edit ``home/templates/home/home_page.html`` to contain the following: