#32260: handler500 as a Class-based view raises SystemCheckError
------------------------------------------------+------------------------
               Reporter:  Daniyal Abbasi        |          Owner:  nobody
                   Type:  Bug                   |         Status:  new
              Component:  Core (System checks)  |        Version:  3.1
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 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()
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32260>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/056.b81fb3c709ddd271180bb52b5742ef57%40djangoproject.com.

Reply via email to