Re: Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

2014-03-01 Thread benjaoming
I've run into this issue twice... both times I spent hours and finally found the error and was in tears... especially the second time I did it :) I've made custom view handlers in urls.py like these: handler500 = 'myproject.views.server_error' handler404 = 'myproject.views.page_not_found' Howev

Re: Security Advisory: BREACH and Django

2013-08-06 Thread benjaoming
Hi Jacob, Thanks for this! Idea! Since many of the mitigations hint at CSRF improvements, consider fixing the issue with CSRF. This should automatically fix issues for both gzip middleware and external projects like mod_deflate etc. That is, go with mitigation 3.4 and 3.6. Regards, Benjamin

Re: extending flatpages

2008-07-13 Thread benjaoming
I just got started with Django and not before long I was thinking the same as you. So I wrote this blog post: http://overtag.dk/wordpress/2008/07/tip-extending-django-flatpages/ It's really simple, but quite a valuable technique, I think. The main idea is: Instead of extending the original flatp