Well, we're missing the bit where you tell us what error are you getting. I don't know about others, but my crystal ball is a bit dusty these days.
The models.py snippet you posted is obvious result of inspectdb output, which *may* need some manual tweaking. But it's difficult for us to guess as we don't know your database and we don't know what exactly is wrong (except for "Django fails"). If you add more details, someone might be able to help you My 2 cents Jirka On Tue, Mar 8, 2011 at 14:08, octopusgrabbus <old_road_f...@verizon.net> wrote: > Here is the table: > > class CsRemove(models.Model): > action = models.CharField(max_length=3, db_column='Action') # > Field name made lowercase. > endpointid = models.IntegerField(primary_key=True, > db_column='EndpointId') # Field name made lowercase. > devicetype = models.IntegerField(primary_key=True, > db_column='DeviceType') # Field name made lowercase. > channelnumber = models.IntegerField(primary_key=True, > db_column='ChannelNumber') # Field name made lowercase. > actiondate = models.DateField(primary_key=True, > db_column='ActionDate') # Field name made lowercase. > class Meta: > db_table = u'cs_remove' > > I can use MySQL Query browser and insert successfully. Django cannot. > I can easily roll some MySQL code to do this, but would prefer to do > it the Django way. > > What am I missing? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.