#32870: Added message when user mispells 'urlpatterns' in some 'urls' module
-------------------------------------+-------------------------------------
Reporter: Igor | Owner: nobody
Kuivjogi Fernandes |
Type: | Status: new
Uncategorized |
Component: Core | Version: 3.2
(URLs) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I found this kind of error when I mispelled `urlspattern` instead of
`urlpatterns` inside my blog/urls.py file.
So the console was throwing an error, but this error do not helped me to
found the problem. Check it:
{{{
django.core.exceptions.ImproperlyConfigured: The included URLconf '<module
'blog.urls'
from '.../my_project/blog/urls.py'>' does not
appear to have any patterns in it. If you see valid patterns in the file
then the
issue is probably caused by a circular import.
}}}
The problem is not with a circular import, but with the mispelled
`urlpatterns` variable itself, so I'm doing this ticket.
OBS.: I have already created a pull request for this:
https://github.com/django/django/pull/14453
I appreciate any feedback.
Thanks,
Igor
--
Ticket URL: <https://code.djangoproject.com/ticket/32870>
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/049.d62e4d4eb4792989580e7b8891a05c4e%40djangoproject.com.