#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           |               Resolution:
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Description changed by Alasdair Nicol:

Old 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/

New 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/

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30329#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.1b8f93f6d48242f2b4fb2f5bf10b2c40%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to