So has Instagram...

2012-04-09 Thread diogobaeder
... just been acquired by Facebook? And it uses Django? The feeling I'm having today is not of surprise; for a lot of Django users and developers, it's no news that this framework can handle huge traffic and highly-demanding scalable systems. But the feeling I have is of deep happiness for bein

Re: discrepancy in default CSRF settings

2012-04-09 Thread Erik Romijn
Hi, On Apr 9, 2012, at 11:32 AM, mjl Martin J. Laubach wrote: > In the corresponding view functions, ensure that the > 'django.core.context_processors.csrf' context processor is being used. > Usually, this can be done in one of two ways: > • Use RequestContext, which always uses > 'django

Re: discrepancy in default CSRF settings

2012-04-09 Thread mjl Martin J. Laubach
> > However, it seems that the defaults are to add the middleware, but not the > context processor. Is there a specific reason for this? > The docs say: In the corresponding view functions, ensure that the 'django.core.context_processors.csrf' context processor is being used. Usually, thi

discrepancy in default CSRF settings

2012-04-09 Thread Erik Romijn
Hi, In order to enable CSRF protection, one needs to add the CsrfViewMiddleware to the middleware classes, and add the CSRF context processor to the context processors. However, it seems that the defaults are to add the middleware, but not the context processor. Is there a specific reason for

Re: FormMixin success_url should accept callable

2012-04-09 Thread Martin Tiršel
Hi, so I should read more carefully :)) I use Django for two years but I don't remember that I saw the reverse_lazy function before :) Yes, you can override it but it is not very DRY. Thanks, Martin On Sun, 08 Apr 2012 23:53:01 +0200, Andrew Ingram wrote: Hi Martin, There are (as of