In a virtual Env with Python 3.7.2, I am trying to run django\'s python manage.py startap myapp and I get this error:
raise ImproperlyConfigured
This error comes because your virtual environment could not connect to newly updated sqlite3 database. For that you have to update your sqlite3 database version manually and then give path of it to your virtual environment. Kindly follow below steps:
Download latest sqlite3 from official site. (https://www.sqlite.org/download.html)wget http://www.sqlite.org/sqlite-autoconf-3070603.tar.gz
Then go to that folder and fire command.
tar xvfz sqlite-autoconf-3070603.tar.gz
Go to respective folder. cd sqlite-autoconf-3070603
./configure
make
make install It may take too time but wait till end. If it's take too much then terminate that process and continue rest of steps.
Now you successfully install updated sqlite3. Now fire this command sudo LD_RUN_PATH=/usr/local/lib ./configure --enable-optimizations
Open your activate file of virtual environment (e.g., venv/bin/activate) and add this line top of the file...
export LD_LIBRARY_PATH="/usr/local/lib"
Now for checking you can type this commands to your python shell
$ python
Python 3.7.3 (default, Apr 12 2019, 16:23:13)
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.27.2'