SuspiciousOperation should now return a 400 error [1]. You could also use 
something like Sentry [2] or filter these messages.

[1] https://code.djangoproject.com/ticket/19866
[2] https://github.com/getsentry/sentry
[3] http://stackoverflow.com/a/19534738

On Thursday, December 5, 2013 11:21:33 AM UTC-8, Jon Dufresne wrote:
>
> I am running Django 1.6. 
>
> I receive a lot of false positive errors from my Django application 
> when accessed with an invalid HTTP_HOST. I have verified that these 
> are in fact HTTP_HOST values that I am not interested in. So I *do* 
> want to return an error to the user. However, it doesn't help me as an 
> admin to receive an email every time this happens. 
>
> What is the most straight forward way to prevent these errors from 
> emailing the admins? I want to continue to receive other errors. 
>
> Thanks, 
> Jon 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/575fa704-ebae-4642-bda5-e6c55cd46249%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to