#30329: Make error message clearer when installed SQLite version is too old.
-------------------------------------------+------------------------
               Reporter:  Alasdair Nicol   |          Owner:  (none)
                   Type:  Uncategorized    |         Status:  new
              Component:  Error reporting  |        Version:  2.2
               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                |
-------------------------------------------+------------------------
 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/

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30329>
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/056.991d8415df4a61d36a96fd331eaea2d9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to