pythondjangogeolocationosgeo

'DatabaseOperations' object has no attribute 'geo_db_type'. When migrate


I am building a WebApp . AND I am stuck on an Error.

What i am trying to do

I am making a Location Based BlogApp and I am using PointField in models.

The Problem

'DatabaseOperations' object has no attribute 'geo_db_type'

This error is keep showing when i migrate. When i go into admin then this error is keep showing.

settings.py

This is the DataBase i am using.

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'postgres',
        'USER': 'postgres',
        'PASSWORD': '---------',
        'HOST': 'localhost',
        'PORT': '',
    }
}

What have i tried

django.db.utils.OperationalError: could not open extension control file "C:/Files/PostgreSQL/13/share/extension/postgis.control": No such file or directory


Solution

  • The error is showing that there's no database in Path.

    You should reinstall postresql and remember that select stackbuilder checbox to tick ok. AND you will automactically redirect to Add Stack builders to Path.