0
所以我已經安裝了多積累包我的構建包的HerokuHeroku的PostGIS的makemigrations錯誤GeoDjango內置
https://github.com/ddollar/heroku-buildpack-multi.git
和我有.buildpacks文件
https://github.com/cyberdelia/heroku-geo-buildpack.git#1.3
https://github.com/heroku/heroku-buildpack-python
工程安裝,但是當我運行python manage.py makemigrations我得到這個錯誤:
django.core.exceptions.ImproperlyConfigured: Cannot determine PostGIS version
for database "d34ce1ddsg9nkp". GeoDjango requires at least PostGIS version 1.3.
Was the database created from a spatial database template?
我試過多種方式setti在settings.py中的數據庫如:
GEOS_LIBRARY_PATH = environ.get('GEOS_LIBRARY_PATH')
GDAL_LIBRARY_PATH = environ.get('GDAL_LIBRARY_PATH')
and
GEOS_LIBRARY_PATH = "{}/libgeos_c.so".format(environ.get('GEOS_LIBRARY_PATH'))
GDAL_LIBRARY_PATH = "{}/libgdal.so".format(environ.get('GDAL_LIBRARY_PATH'))
我在做什麼錯?
有史以來最好回答!謝謝!! – pateto777 2017-07-04 16:22:46