Using the working stuff reported here, I've written the following django model:
from django.contrib.gis.models import SpatialRefSys class LandCover(models.Model): shp_name = models.CharField(max_length=100) geom_srid = models.ForeignKey(SpatialRefSys)
But syncdb gives me this error :
[user@host]$ ./manage.py syncdb CommandError: One or more models did not validate: myapp.landcover: 'geom_srid' has a relation with model <class 'django.contrib.gis.db.backends.postgis.models.SpatialRefSys'>, which has either not been installed or is abstract.
Is there a way to solve this?