Atrox / sweetify-django

SweetAlert integration for Django
BSD 3-Clause "New" or "Revised" License
55 stars 21 forks source link

'Context' object has no attribute 'request' #20

Closed irfanpule closed 3 years ago

irfanpule commented 3 years ago

Summary

On my Sentry report, I get some issue AttributeError 'Context' object has no attribute 'request'. After I observed, this error appeared when an error 500 occurred in my application. If there is an error 500 in the application then the context contains None.

Screenshot from 2021-02-16 10-19-16

TODO

irfanpule commented 3 years ago

Sorry, in case I use custom page if any error 500. In my template {% load sweetify %}, then I remove it to resolve problem. Because in template error don't need sweetify.