初めてdjango-profilesを使用しているので、基本的なものが欠けている可能性があります。
地理的フィールドを含む UserProfile モデルを作成したいと考えています。具体的には、これらの行に沿った何か:
class UserProfile(models.Model):
user = models.OneToOneField(User)
phone = PhoneNumberField()
address = models.CharField(max_length=200)
distance = models.IntegerField()
zone = models.ForeignKey(Hood, null=True, blank=True)
location = models.PointField(srid=900913, null=True, blank=True)
objects = models.GeoManager()
contrib.gis.db からモデルをインポートし、auth から汎用ユーザー モデルもインポートしています。
syncdb を実行しようとすると、次のエラーが表示されます。
AttributeError: 'module' object has no attribute 'PointField'