WebFaction
Community site: login faq

I am using south and django on a new site with a postgres database. I am attempting to do the initial migration but get the following error django.db.utils.DatabaseError: invalid input syntax for integer: "" when this line is called ('views', self.gf('django.db.models.fields.IntegerField')(default=0)),

which translates to this in the model views = models.IntegerField(default=0)

This all works fine with sqllite locally, anyone know why this is happening?

Thanks, CG

asked 16 Sep '11, 18:47

CG11
133
accept rate: 0%


Not sure why but I set the default to 1 and it fixed the issue.

permanent link

answered 16 Sep '11, 19:06

CG11
133
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×22
×9

question asked: 16 Sep '11, 18:47

question was seen: 3,517 times

last updated: 16 Sep '11, 19:06

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM