我正在按照GeoDjango Tutorial的说明使用Sqlite来执行here。
当我调用load.py脚本时,它停止显示错误:
Failed to save the feature (id: 206) into the model with the keyword arguments:
{'fips': 'UK', 'iso2': 'GB', 'iso3': 'GBR', 'un': 826, 'name': 'United Kingdom'
...
sqlite3.IntegrityError: NOT NULL constraint failed: world_worldborder.mpoly
...
django.db.utils.IntegrityError: NOT NULL constraint failed: world_worldborder.mpoly
有人知道这个问题的原因吗?还有一种Django管理几何的方法,可以很好地导入包括“英国”记录在内的所有数据?
我正在使用: