Re: a request for some brain picking
Thanks for the thoughts Dougal. At the moment the only "managing" of
templates comes from uploading them through a form. If you wanted to
change/fork them you'd have to create your own "design" and then re-
upload the modified template.
Right now my example templates are super simple HTML templates
(they're in the repository mentioned above). If a design implements
then it will preferentially render the design's template over my own.
I do like the idea of people uploading templates that over-ride admin
templates. It would make it more "plug-able" with current django
installations. I could use many different models to to show all of
the possible "view-types" that the standard ModelAdmin allows.
Although I have a question about the usefulness of these templates.
(my understanding at least) Is that the admin site is supposed to be a
"no-mess" administration site that "covers all the bases" so the coder
doesn't have to worry about implementing it. Do you think this would
be a useful resource for people creating "front-facing" templates
though?
The problem I see with a "wiki style" editing would be people
introducing malicious code which I end up unknowingly loading into
django and exposing myself and others to the whims of "bad people".
"Forking" a design would be pretty easy in implement, I could simply
copy the relevant files into a new one.
On Jan 2, 8:01 am, Dougal Matthews <douga...@gmail.com> wrote:
> How would you propose people edit and manage the templates?
>
> Do you follow a wiki style where everybody can edit others? or follow a VCS
> and allow forking of templates?
>
> I think it will be hard to find contributors since it will be hard to have a
> limited/standard template context that still remains a useful resource for
> all.
>
> Have you any thoughts about example templates? Perhaps a good place to start
> would be by creating custom admin templates as that context is defined by
> django already (pretty much) and then it would be useful and usable by
> anybody in real projects rather than scenarios.
>
> Dougal
>
> ---
> Dougal Matthews - @d0ugalhttp://www.dougalmatthews.com/
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home