我正在尝试在本地运行面板。当我运行服务器时出现此错误:
You have 149 unapplied migration(s). Your project may not work properly >until you apply the migrations for app(s): account, admin, authtoken, >conf, easy_thumbnails, finance, messaging, order, payment, product, >sites, warehouse. Run 'python manage.py migrate' to apply them.````
我也尝试过这个:
python3.6 manage.py makemigrations
它说:
No changes detected
最后当我使用 migrate 命令时它说:
AttributeError: 'DatabaseOperations' object has no attribute >'geo_db_type'
最佳答案
当您尝试在 sqlite 上保存地理数据时,可能会发生这种情况。 试试这个:
'ENGINE': 'django.contrib.gis.db.backends.spatialite'
关于python - 在您应用应用程序的迁移之前,项目可能无法正常工作,但迁移不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54725222/