>
> Yes author is model @Josh
>
 

> Thank's Allah, i solve this problem.   What i did is i decided to start 
> from simple model and simple example.
>

*models.py file:*
 

> from django.db import models
> from mezzanine.pages.models import Page
>
> class Author(Page):
>     dob = models.DateField("Date of birth")
>

*page_processors.py file:*

from django.http import HttpResponseRedirect
from mezzanine.pages.page_processors import processor_for
from models import Author

@processor_for("authors")
def authors_list(request, page):
       authors =['abc', 'def']                       //just hard coded 
these values to get better understanding for myself
       return {"authors": authors} 

*authors.html page*

<html>
<head>
    <title>Page Title</title>
</head>

<body>

{% for item in authors %}
{{ item}}<br />
{% endfor %}

</body>
</html>

*urls.py file:*

url("^authors/$", "mezzanine.pages.views.page", {"slug": "authors"}, 
name="authors"),


Thank's Mezzanine Users
Regards 
Tameen

-- 
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