Logging CSRF errors and other HTTP errors by Django
19 views
Skip to first unread message
Web Architect
unread,
Mar 8, 2017, 9:15:42 AM3/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi,
Is there a way to log CSRF errors? Like whenever an user visits my site and faces a CSRF error, I would like Django to log it in a file. I would like to know if my users are facing CSRF errors.
Also, Can Django log HTTP error codes like 4xx or 5xx in a file?
We are using Django 1.8.3 with uWsgi.
Thanks.
Melvyn Sopacua
unread,
Mar 8, 2017, 11:01:21 AM3/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
On Wednesday 08 March 2017 06:15:42 Web Architect wrote:
> Is there a way to log CSRF errors? Like whenever an user visits my
> site and faces a CSRF error, I would like Django to log it in a file.