#23813: Add checks for common URLpattern errors
--------------------------------------+--------------------
     Reporter:  jwa                   |      Owner:  jwa
         Type:  New feature           |     Status:  new
    Component:  Core (System checks)  |    Version:  master
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 The system checks framework can be expanded to help less experienced users
 help with common mistakes. One source of those is the urlpatterns we have
 to configure. It would be nice to have checks in place that verify the
 validity and sanity of urls.

 One particular example that comes to mind (from my own experience):

 {{{
 urlpatterns = [
     url(r'^my_app/$', include('my_app')),
 ]
 }}}

 This would trigger a warning that the trailing '$' in this regular
 expression is most likely not intended. :-)


 Please do suggest any additional checks that could be added as well.

--
Ticket URL: <https://code.djangoproject.com/ticket/23813>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/046.22beffe060b3eb5a2904041ea401541e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to