The variables that are available in the templates are the fields in the
Django model you're using. In this case you're using the Page model, which
is defined in mezzanine.pages.models.Page
<https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/models.py#L35>
(notice that the model is composed of a few others, so not all fields are
listed there).

For an example of how to use the model data in templates, take a look at
Mezzanine's included templates, like page.html
<https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/templates/pages/page.html>
and richtextpage.html
<https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/templates/pages/richtextpage.html>
(in that last one you'll see how to output the main content you are asking
about).

Let me say that a working understanding of Django in general is required to
make the most out of Mezzanine. I recommend the Django girls tutorial
<http://tutorial.djangogirls.org/> and the official Django tutorial
<https://docs.djangoproject.com/en/1.9/intro/tutorial01/> to get started
(in that order). I hope you enjoy your journey with Django and Mezzanine.

On Tue, Aug 2, 2016 at 11:32 AM, <dznek...@gmail.com> wrote:

> Hi,
>
> I'm new to Django and Mezzanine and I'm looking to use variables to
> display content.
>
> For example {{ page.description }} only displays the first line:
> AAA
> from
> AAA
> BBB
> CCC
> (see attachment)
>
> Is there a list of default variables I can use? For example something like
> {{ page.content }} to display the whole text?
>
> Thank you very much!
>
> David
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to