Re: [GSOC] Template Compilation

2010-03-04 Thread Russell Keith-Magee
On Thu, Mar 4, 2010 at 7:29 AM, Alex Gaynor wrote: > Django Template Compilation > === First up, this looks like a solid proposal Alex. Anything that speeds up template generation is good, and if your indicative stats turn out to be representative

Re: Abstract models and their managers

2010-03-04 Thread Johannes Dollinger
Hi Steve, Multiple inheritance with abstract models works, and mostly did since the feature was added afaict. I use it regulary. Just stay away from diamond inheritance and multi-multi-table inheritance. Regarding your managers: couldn't you just use inheritance explicitly? class

Re: Abstract models and their managers

2010-03-04 Thread Stephen McDonald
Hi Johannes, Yes inheriting the managers is in fact how I currently deal with the situation however I feel as though this violates the DRY principle as the relationship is already expressed via the model inheritance. I guess "explicit is better than implicit" chimes in here to some degree. On

Re: Abstract models and their managers

2010-03-04 Thread Russell Keith-Magee
On Thu, Mar 4, 2010 at 5:02 PM, Johannes Dollinger wrote: > Hi Steve, > > Multiple inheritance with abstract models works, and mostly did since the > feature was added afaict. I use it regulary. If multiple abstract inheritance works, it is accident, not

Re: [GSOC] Template Compilation

2010-03-04 Thread Alex Gaynor
On Thu, Mar 4, 2010 at 3:41 AM, Russell Keith-Magee wrote: > On Thu, Mar 4, 2010 at 7:29 AM, Alex Gaynor wrote: >> Django Template Compilation >> === > > First up, this looks like a solid proposal Alex. Anything that speeds >

Adding a new convenience filter 'contains_any'

2010-03-04 Thread aditya
I would like to add a new filter for models to my django build that can be used as follows: tags = ['tag1','tag2','tag3''tagn'] i = Image.objects.filter(tags__contains_any=tags) Essentially, instead of passing a string, I pass a list and get a set of valid objects that match *any* of the

To Access SQL Reports from Django application

2010-03-04 Thread bimal
Hi All, I am looking for a solution regarding reporting services works with django. I have generated sql report using report builder 2.0 which is in sql server database. How do i access those reports with django application ? or How do i integrate my sql reports with django application? is

A question for the Django webmaster...

2010-03-04 Thread Bill Hart
I would like to get information about the Django webpages themselves. I like the visual integration that is achieved between the Django webpages and the Django Trac page. Is there some documentation for how this was done? I assume that this is done with Django itself? --Bill -- You received

Re: To Access SQL Reports from Django application

2010-03-04 Thread Karen Tracey
This question is off-topic for the django-developers list, which is a list about developing Django itself. Please ask questions about using Django on django-users. Karen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this

Re: Adding a new convenience filter 'contains_any'

2010-03-04 Thread Gabriel Hurley
The Django Developers list for discussion of the development of Django itself. Please ask questions related to using Django on django-users, not here. Just to point you in the right general direction, the allowed query terms are defined in django.db.models.sql.constants the and then the SQL is

Re: A question for the Django webmaster...

2010-03-04 Thread Jacob Kaplan-Moss
On Thu, Mar 4, 2010 at 2:45 PM, Bill Hart wrote: > I would like to get information about the Django webpages themselves. All the code that runs djangoproject.com lives here: http://code.djangoproject.com/browser/djangoproject.com > I like the visual integration that is

Re: Adding a new convenience filter 'contains_any'

2010-03-04 Thread Jerome Leclanche
On Thu, Mar 4, 2010 at 11:05 PM, Gabriel Hurley wrote: > The Django Developers list for discussion of the development of Django > itself. Please ask questions related to using Django on django-users, > not here. This looks very django-development-related to me. Having

Re: Adding a new convenience filter 'contains_any'

2010-03-04 Thread Gabriel Hurley
I guess it depends whether he wants his new filter added to core, or just for his project... That's why I gave him a starting point, just in case ;-) - Gabriel On Mar 4, 1:12 pm, Jerome Leclanche wrote: > On Thu, Mar 4, 2010 at 11:05 PM, Gabriel Hurley

Re: [GSOC] Template Compilation

2010-03-04 Thread Russell Keith-Magee
On Fri, Mar 5, 2010 at 12:26 AM, Alex Gaynor wrote: > On Thu, Mar 4, 2010 at 3:41 AM, Russell Keith-Magee > wrote: >> On Thu, Mar 4, 2010 at 7:29 AM, Alex Gaynor wrote: >>> Templates will be compiled by turning each template

Re: [GSOC] Template Compilation

2010-03-04 Thread Alex Gaynor
On Thu, Mar 4, 2010 at 6:58 PM, Russell Keith-Magee wrote: > On Fri, Mar 5, 2010 at 12:26 AM, Alex Gaynor wrote: >> On Thu, Mar 4, 2010 at 3:41 AM, Russell Keith-Magee >> wrote: >>> On Thu, Mar 4, 2010 at 7:29 AM, Alex

Re: Adding a new convenience filter 'contains_any'

2010-03-04 Thread Russell Keith-Magee
On Fri, Mar 5, 2010 at 3:56 AM, aditya wrote: > I would like to add a new filter for models to my django build that > can be used as follows: > > tags = ['tag1','tag2','tag3''tagn'] > i = Image.objects.filter(tags__contains_any=tags) > > > Essentially, instead of

Re: Template Compilation

2010-03-04 Thread SmileyChris
Would whitespace handling be identical to the current template system? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to

Re: Template Compilation

2010-03-04 Thread Alex Gaynor
On Thu, Mar 4, 2010 at 8:01 PM, SmileyChris wrote: > Would whitespace handling be identical to the current template system? > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email

Re: 2 small tickets

2010-03-04 Thread Jared Forsyth
Is there a good tutorial/docs on "adding tests to django"? It took me a while to figure out/guess the structure/organization of tests, and I'm still not sure whether I've done it right (for reference here's the