GeoDjango: PostgreSQL not running migrations, object has no attribute 'geo_db_type

后端 未结 1 413
予麋鹿
予麋鹿 2021-01-17 22:51

Django v1.11.5

I\'m trying to install GeoDjango to play around with GoogleMaps.

I installed PostgreSQL app for MAC and installed pip install psycopg2

相关标签:
1条回答
  • 2021-01-17 23:18

    You need to change your DATABASES setting to use the postgis backend,

    'ENGINE': 'django.contrib.gis.db.backends.postgis',
    

    and add 'django.contrib.gis', to INSTALLED_APPS.

    0 讨论(0)
提交回复
热议问题