[Django]-I am adding location field in my django model Its showing an error

3👍

your postgres DB missing postgis plugin

Please install postgis extensions using the below command

sudo apt-get install postgis postgresql-9.3-postgis-scripts

please use the postgis version same as your postgres db

0👍

sudo apt-get install postgis postgresql-11-postgis-scripts gave me:

The following packages have unmet dependencies:
 postgis : Depends: libgdal20 (>= 2.0.1) but it is not installable
           Depends: libproj12 (>= 4.9.0) but it is not installable
           Recommends: postgresql-postgis
           Recommends: postgis-doc but it is not going to be installed

Then, I tried successfully:
sudo apt-get install postgresql-11-postgis-2.5-scripts

Leave a comment