0
所以我遵循DOCS,只是想確保我的理解正確。 https://docs.djangoproject.com/en/1.10/ref/contrib/gis/install/postgis/如何爲Django安裝PostGIS?
難道我只是創建一個名爲migrations.py與文件:
from django.contrib.postgres.operations import CreateExtension
from django.db import migrations
class Migration(migrations.Migration):
operations = [
CreateExtension('postgis'),
...
]
,並在我的項目目錄降了嗎?然後運行python manage.py makemigrations?
'蟒蛇manage.py migrate'不'凡在我的項目目錄makemigrations' – dnit13
?只是根? – david