Tagged Questions
4
votes
1answer
316 views
Geodjango insert statement: psycopg2.IntegrityError: violates check constraint
Why is the following INSERT statement throwing this error?
INSERT INTO domes_place (placeid, structidx, oscode) VALUES ('10', '1', 'POINT(51.121282945772 1.3138398501222)');
psycopg2.IntegrityError: ...
1
vote
2answers
405 views
Error adding data to Geodjango database: parse error… within geometry
I'm trying to insert some values into a Geodjango database, but getting errors. This is the table:
class Place(models.Model):
placeid = models.IntegerField(primary_key=True)
structidx = ...