On 14 Cze, 09:06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> I think your expectations are a little different than what Django
> provides. Django gives you a framework for hndling the pieces of a
> project that can be automated most of the time. Laying out the
> information on a page is not one of those pieces, since it's very
> particular to each project.
Thanks for clarification.

> SThere isn't anything in core that takes a model and produces any sort
> of HTML static page for it.
Forms are such thing. Forms are able to render themselves as_p,
as_table etc. I thought that it is possible to render the form as read-
only (display mode). It is possible with zope formlib for example.

> It would be simple enough for you to write
> one for your own purposes if you wanted. Have a look at how, say,
> django.newsforms.utils.form_for_model() iterates over the fields and use
> that to generate a template string.
Right, but I wanted to be sure that I won't reinvent the wheel.

> The newforms portion is not appropriate for this though, since forms are
> for input, not static data presentation.
Why not? Formlib has a DisplayForm and it is really cool and useful.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to