I am trying to use custom template on page_not_found default handle
Inside urls.py
from django.views.defaults import page_not_found
handler404 = page_not_found(request, None, "pages/custom/404.html")
page_not found method requires request, exception and template. So how can i get the request object. I know the alternative for using it inside views.py