Opened 6 years ago
Last modified 5 years ago
#30329 closed Bug
Make error message clearer when installed SQLite version is too old. — at Initial Version
Reported by: | Alasdair Nicol | Owned by: | |
---|---|---|---|
Component: | Error reporting | Version: | 2.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When an older version of sqlite is installed, the final line of the traceback is unrelated.
raise LookupError(message)
LookupError: No installed app with label 'admin'.
If you look further up the traceback, you can see what the problem is, but this can be tricky for newer users.
raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
I think that if we made the error message clearer it would be helpful for new users. Perhaps we could do this by checking the sqlite version in a system check, or maybe there's a better approach.
Related Stack Overflow question: https://stackoverflow.com/questions/55512244/no-installed-app-with-label-admin-in-empty-django-2-2-project/