Re: Proposal: Tutorial Refresh

2009-10-19 Thread Jeff Anderson
On Sat, Oct 17, 2009 at 06:32:31PM +0100, gareth rushgrove wrote: > I'm currently helping teach a small development team Django (formerly > PHP people), at the same time building production software with them. > The poll tutorial helped a few of them with basic syntax but on some > of the bigger th

Reversing URL for a view with namespaces

2009-10-19 Thread Ivan Sagalaev
Hello! I've just stumbled upon a difficult to understand problem. I have an app that has an urlconf which is included in a project under a namespace: (r'^blog/', include('app.urls', namespace='blog')), This namespace allows things like {% url blog:article ... %} which is very nice. But

date_based.archive_index ordering

2009-10-19 Thread saturdayplace
The date_based.archive_index generic view ALWAYS returns a list of objects ordered by "-date_field", regardless of the queryset it's been given. I was taken off-guard by this when trying to get the list to display in a template in "date_field" order. I can get the output I want by doing {% for

Re: patch produced by svn diff doesn't display in django trac

2009-10-19 Thread Gabriel Farrell
On Oct 16, 8:54 pm, Russell Keith-Magee wrote: > On Sat, Oct 17, 2009 at 6:00 AM, Gabriel Farrell wrote: > > > I hate to waste time talking about the tools rather than the product, > > but I'm frustrated by my inability to get my patches displaying nicely > > in the Django code trac. > > Seeht

Add admin actions to the CommentsAdmin [#11625]

2009-10-19 Thread Thejaswi Puthraya
When comments made it into trunk, there was one feature (moderation queue) that was not documented because it was quite un'django'ic and I was hoping someone would come up with a neat way of implementing it within the admin. But with admin actions integrated into trunk, this job was made easier.

auth.User: a new approach

2009-10-19 Thread Hanne Moa
It doesn't look like Contrib-06, covering ticket #3011, Allow for extendable user module, will be in for 1.2. So: let's think afresh, start from scratch, think about what we really, really want. This is my pony for *2.0*: The underlying problem of today's auth.User is IMO that it conflates two th

Re: The this-needs-to-be-in-django angst

2009-10-19 Thread mrts
(Inspired by Yuri Baburov's criticism and RKM's response.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscr

The this-needs-to-be-in-django angst

2009-10-19 Thread mrts
Let me suggest that there are many who have at times felt frustrated how contributions or suggestions are managed in Django. Some of them seem to have walked away or just don't participate in discussions any longer. The same applies to several other large open source projects, the Linux kernel and

Re: Proposal for 1.2: Improved URL system

2009-10-19 Thread dchandek
-1. I would question the wisdom of introducing a second URL system on the basis of simplicity and clarity alone. The assertion that regular expressions are "ugly" and "difficult" is, I suppose, subjective. I prefer to think of them as "powerful". In any case, I think we should ask whether the

Re: Are threading.local objects evil? (was Re: shortcut proposal)

2009-10-19 Thread Hanne Moa
On Fri, Oct 16, 2009 at 23:30, Michael P. Jung wrote: > Cal Henderson in the Keynote "Why I Hate Django" pointed out in a very > funny way that most projects never get THAT big that you need multi db > support, partitioning, extensive database clusters, etc. Just skip to > 19:20 to see his "scien

Re: shortcut proposal

2009-10-19 Thread Russell Keith-Magee
On Mon, Oct 19, 2009 at 4:47 PM, Exe wrote: > > Hello! > >> As a consequence of the proposed CSRF changes, we brought up wanting >> to add a shortcut like render_to_response that uses RequestContext > > I want to propose another method. > > Why we need RequestContext? We need it to provide global

Re: shortcut proposal

2009-10-19 Thread Exe
Hello! > As a consequence of the proposed CSRF changes, we brought up wanting > to add a shortcut like render_to_response that uses RequestContext I want to propose another method. Why we need RequestContext? We need it to provide global template variables. Why this is a bad idea? It's bad be

Re: Jogging: my take on 1.2 logging

2009-10-19 Thread Exe
On Sun, 18 Oct 2009 14:44:45 -0700 Zain Memon wrote: > I was inspired by all the logging discussions lately, so I wrote a > wrapper for Python's logging module called jogging: > http://github.com/zain/jogging :) logging.critical("DOOM") # TODO --~--~-~--~~~-

Re: Can you add a build-in template tags?

2009-10-19 Thread Michael P. Jung
> There is a templatetags {% include 'x.html' %}, it's very nice. may a > templatetags like {% include no-parse "x.html"} is needed. It's so > powerful to improve the speed of include some static files which has > no variable,and it's so easy for you guys, isn't it? It'd be very easy to add an t