I am new to Geodjango. and I am following the steps given in https://docs.djangoproject.com/en/dev/ref/contrib/gis/tutorial/#
and the steps i followed before https://docs.djangoproject.com/en/dev/ref/contrib/gis/tutorial/#spatial-queries were working fine but after that I got error in the
qs = WorldBorder.objects.filter(mpoly__contains=pnt_wkt)
in this Statement.
Error it is showing is
FieldError: Cannot resolve keyword 'mpoly' into field. Choices are: area, fips, geom, id,
iso2, iso3, lat, lon, name, pop2005, region, subregion, un
and if I am executing this line
sm = WorldBorder.objects.get(name='San Marino')
Then Error is
DatabaseError: column world_worldborder.geom does not exist
LINE 1: ...ld_worldborder"."lon", "world_worldborder"."lat", "world_wor...
Kindly Help ..
Thanks