Security model documentation

2005-10-27 Thread jws
Having read the authentication documentation, it's still not clear to me how the permission system works. They merely say "has_perm(perm)`` -- Returns ``True`` if the user has the specified permission" - without actually describing what 'perm' looks like. Could someone post a illustrative code sn

Re: many to many tables and editing them

2005-10-27 Thread Robert Wittams
Ian Holsman wrote: > (still a newbie on all this, so excuse me if this has been discussed > ad-nausieum beforehand) > > Hi. > > I've got a many to many table relationship... say > > Tags <--> People > > with the relationship defined on the 'people' model class. > > all is fantastic when I wan

Re: 'include' template tag

2005-10-27 Thread Maniac
Robert Wittams wrote: See new-admin branch or ticket #598. It just needs to be applied to trunk. Great! Also, be aware that you can extend a template whose name is in a variable. Funny :-). Thanks for showing this!

Re: 'include' template tag

2005-10-27 Thread Robert Wittams
See new-admin branch or ticket #598. It just needs to be applied to trunk. Also, be aware that you can extend a template whose name is in a variable. in path/to/template: {%extends parent%} {%block content %} ...your central content... {%endblock%} in main view: render_to_response('path/to/te

'include' template tag

2005-10-27 Thread Maniac
Hi! Django's template system encourages extension of base templates as a mechanism of template reuse. However simple functionality for inclusion templates is still needed. Here's the example. I have a web application for manipulating images. It has a central interface part (one Django view)