Re: Logging CSRF errors and other HTTP errors by Django

2017-03-08 Thread Web Architect
Thanks for your response. We do use logging but missed the part of django.request. Thanks for pointing it. On Wednesday, March 8, 2017 at 9:31:21 PM UTC+5:30, Melvyn Sopacua wrote: > > On Wednesday 08 March 2017 06:15:42 Web Architect wrote: > > > > > Is there a way to log CSRF errors? Like wh

Re: Logging CSRF errors and other HTTP errors by Django

2017-03-08 Thread Melvyn Sopacua
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. Did you read the logging documentation[1]? -- Melvyn Sopacua [1] https://docs.djangopr

Logging CSRF errors and other HTTP errors by Django

2017-03-08 Thread Web Architect
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