#30500: Error reporting returns a circular import error on a python formatting
error, and does not restart the development server
-------------------------------------+-------------------------------------
Reporter: Runner15 | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: Error reporting | Version: 2.2
Severity: Normal | Resolution:
Keywords: error reporting, | Triage Stage:
error, circular import | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Keryn Knight):
* status: closed => new
* resolution: needsinfo =>
Comment:
Re-opening as I can reproduce the less-useful-exception in 2.2.1 vs 2.2
(via Python 3.6)
The correct error which should be surfaced is (2.1):
{{{
NameError: name 'a' is not defined
}}}
The error which is surfaced currently (2.2.1) is:
{{{
django.core.exceptions.ImproperlyConfigured: The included URLconf
't30500.urls' 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.
}}}
Example reproducible project is available: https://github.com/kezabelle
/django-bug-30500
Steps to reproduce:
- runserver the project under 2.1
- Uncomment the "a" in "t30500/views.py" to trigger the reloader and the
exception to stdout
Do the same under 2.2, and the error won't turn up.
--
Ticket URL: <https://code.djangoproject.com/ticket/30500#comment:5>
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/066.dd4bc35b5e22e2341e34d756c429f8c2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.