On Tuesday, 12 December 2017 17:27:03 UTC, Chris Seberino wrote:
-- Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'"It means literally that "handle_404() got an unexpected keyword argument 'exception'", how are you calling handle_404()?
Thanks for your help. In my urls.py I have this...django.conf.urls.handler404 = "main.controllers.controllers.handle_404" I believe that invokes the handle_404 function in the main/controllers/controllers.py file? cs
And what does your handle_404 function look like? As the error says, it needs to accept an "exception" keyword argument.
Note also that overriding the 404 handler is a very specialized thing to do and is almost always not required. Why are you doing this?
--
DR.
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9c81d2b-6834-4774-81ca-1e4473b8c5ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment