Jashugan, I agree that generic views for non-admins make sense, just be nice to be able to say
body_html = auto_generate(model, list/display/update etc.) or whatever admin is doing and stick that in a generic template. {% extends 'base.html' %} {% block main %} {{body_html}} {% endblock %} What do you think? On Jun 11, 4:34 pm, Jashugan <jashu...@gmail.com> wrote: > On Jun 11, 8:03 am, phoebebright <phoebebri...@spamcop.net> wrote: > > > I have spent a good deal time researching this online and in this > > group but can find no clear answer. > > I think the reason why is that it depends on what you want to do. > > > My instinct is that I should use the former, but do I really have to > > go and write all those templates when admin is so good at it already? > > I use generic views for models that need to be administered by any non- > programmer admins. One reason is that they are consistent with the > look of the rest of the site, whereas the admin interface is not. > Another is that I usually end up having to customize either the view > logic or the template that it uses slightly, so I would prefer to have > a 'stub' in place to go off of. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---