Re: key specification without a key length

2016-02-22 Thread Sammi Singh
ySQLdb/cursors.py", line 205, in execute self.errorhandler(self, exc, value) File "/Library/Python/2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler raise errorclass, errorvalue django.db.utils.OperationalError: (1170, "BLOB/TEXT column 

1170, "BLOB/TEXT column

2016-02-19 Thread Sammi Singh
Hi, I'm new wot Django and stuck with below error when run migrate. Any suggestions?? *django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'id' used in key specification without a key length")* Here is my code: class Steps(models.Model): author = models.ForeignKey(User) #id =

key specification without a key length

2016-02-19 Thread Sammi Singh
Hi, I'm new to Django and facing this error "*django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'id' used in key specification without a key length")*" Here is my code: class Steps(models.Model): author = models.ForeignKey(User) #id = models.TextField(primary_key=True)