TemplateResponse and decorator_from_middleware

2011-05-10 Thread Luke Plant
When TemplateResponse and process_template_response were introduced, decorator_from_middleware was not updated to match. This produces at least this problem: The csrf_protect decorator, which is just decorator_from_middleware(CsrfViewMiddleware), does not work correctly on its own. Because the tem

Re: Field lookup types and backwards incompatibility

2011-05-10 Thread Chris Beaven
3. Change lookups to be uppercase (start the process of deprecating the current lowercase ones) -- 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 unsubscribe from th

Re: NoSQL support

2011-05-10 Thread legutierr
> Please don't get me wrong. I have worked with RDBMS for more than a > decade but I alse use django-nonrel with MongoDB on a daily basis. I > also think that the approach django-mongokit takes is much more > natural for NoSQL data than just reusing the ORM. The ORM has no way > to express complex

Re: logging view errors

2011-05-10 Thread Florian Apolloner
Hi, On May 10, 11:33 pm, Shawn Milochik wrote: > You and someone on django-users both told me about process_exception, > which I had been unaware of. It looks perfect for what I need. There is also a signal for it: http://docs.djangoproject.com/en/dev/ref/signals/#got-request-exception if you d

Re: logging view errors

2011-05-10 Thread Shawn Milochik
On 05/10/2011 04:52 PM, Michael Blume wrote: A developer can currently do this pretty easily with middleware by setting a process_exception method. We could provide some contrib middleware for logging exceptions, but I don't see any need to bring this into core. -Mike Mike, You and someon

Re: NoSQL support

2011-05-10 Thread Patryk Zawadzki
On Tue, May 10, 2011 at 9:40 PM, legutierr wrote: > Maybe it is inevitable that this kind of debate will crop up in any > discussion of django-nonrel or NoSQL, but I very much hope that the > philosophical debate does not detract from this fact: that django- > nonrel has demonstrated in very real

Re: logging view errors

2011-05-10 Thread Michael Blume
A developer can currently do this pretty easily with middleware by setting a process_exception method. We could provide some contrib middleware for logging exceptions, but I don't see any need to bring this into core. -Mike On Tue, May 10, 2011 at 1:26 PM, Shawn Milochik wrote: > I think this i

logging view errors

2011-05-10 Thread Shawn Milochik
I think this is something I'd like to open up a ticket for, but first I want to see whether it's already possible, or is overruled by existing design decisions. Desire: Now that logging is built into Django, I think that any time there is an exception in a view a logging.exception message shou

Re: NoSQL support

2011-05-10 Thread legutierr
> Did you guys consider providing a Document class that is entirely > separate from models.Model? > > Technically speaking teaching the ORM non-relational tricks is of > course possible but in reality the philosophy is entirely different > and you need to plan for NoSQL from the very beginning. Tr

Re: #1342 Allow customization of MAX_SHOW_ALL_ALLOWED. Reopen or new ticket?

2011-05-10 Thread Carl Meyer
Hi Jim, On 05/10/2011 02:09 PM, Jim D. wrote: > I'm looking at a five-year-old ticket here (http:// > code.djangoproject.com/ticket/1342) that suggests MAX_SHOW_ALL_ALLOWED > in the admin be configurable. As of now it is hard coded at 200 in > contrib/admin/views/main.py . > > The ticket is, in m

#1342 Allow customization of MAX_SHOW_ALL_ALLOWED. Reopen or new ticket?

2011-05-10 Thread Jim D.
I'm looking at a five-year-old ticket here (http:// code.djangoproject.com/ticket/1342) that suggests MAX_SHOW_ALL_ALLOWED in the admin be configurable. As of now it is hard coded at 200 in contrib/admin/views/main.py . The ticket is, in my opinion, somewhat erroneously marked as "fixed", as someo

Re: NoSQL support

2011-05-10 Thread Patryk Zawadzki
On Wed, Apr 27, 2011 at 10:12 AM, Waldemar Kornewald wrote: > Hi, > we (the Django-nonrel developers) would like to work on official NoSQL > support for Django. We'd like to focus only on databases similar to > App Engine, MongoDB, and Cassandra 0.7+ with secondary indexes. Our > goal is not to su

Backporting policy for 1.2.X

2011-05-10 Thread Luke Plant
Hi all, After some discussions on django-core, we recently changed our backporting policy for the bug fix branch. However, we didn't say anything about the previous branch (i.e. 1.2.X currently). Are we going to leave that the same - security fixes only? With a smaller backporting burden, I wouldn

django.db.models.loading suppresses an ImportError leading to None value weirdness

2011-05-10 Thread Peter Russell
Hi I've encountered a problem with Django 1.3 when app loading. It has taken a while to get to the root cause because I am working on a large application and because the errors were so bizarre. Basically, It's possible for all apps to successfully import, but when you execute any methods on your