Thursday, 3 April 2014

Django 1.5.4 syncdb not formulating some fields in PostgreSQL 9.1/PostGIS 2 tables

I have a Django denote like this:class Company(models.Model):
name=models.CharField(max_length=256, default=''),
user=models.ForeignKey(User), logo=models.ImageField(upload_to='logos')
def __unicode__(self): relapse unicode(self.name)after
controlling syncdb, we get this PostgreSQL tableCREATE TABLE myapp_company
( id integer NOT NULL, trademark impression varying(100) NOT
NULL);So, no name field, conjunction user id. The same thing happens with
other denote classes: blank fields. And feeling random. For example, this
is weird. This modelclass MapLayer(models.Model): cartodb_layer =
models.ForeignKey('CartoDBLayer'), work_map =
models.ForeignKey('WorkMap'), overlie =
models.BooleanField(default=False), min_zoom =
models.IntegerField(default=4), max_zoom =
models.IntegerField(default=14), opacity =
models.FloatField(default=0.6), anti_aliasing =
models.FloatField(default=0.5)Generates this PostgreSQL tableCREATE TABLE
myapp_maplayer ( id integer NOT NULL, anti_aliasing double pointing
NOT NULL);So, since only a id and a final domain (a float), though not any
other field?? Same problem perplexing to run a schemamigration --initial
around South 0.8.2. But a fact even a rudimentary syncdb fails creates me
cruise it's not a South issue.My program versions:Django 1.5.4South
0.8.2PostgreSQL 9.1 + PostGIS 2Any clues?

No comments:

Post a Comment