Opened 3 years ago

Last modified 3 years ago

#32260 closed Cleanup/optimization

handler500 as a Class-based view raises SystemCheckError — at Initial Version

Reported by: Daniyal Abbasi Owned by: nobody
Component: Core (System checks) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Setting handler500 as a Class-Based view raises the following error which running checks.

$ python manage.py check
SystemCheckError: System check identified some issues:

ERRORS:
?: (urls.E007) The custom handler500 view 'path.to.my.MyView' does not take the correct number of arguments (request).

In my root urls.py, I have the following configuration,

handler404 = MyView.as_view()
handler500 = MyView.as_view()

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top