Hi, I'm am getting MySQL error 1406 while running syncdb. (See link
http://pastebin.org/59605)

This happens after I create the superuser.

The error says _mysql_exceptions.DataError: (1406, "Data too long for
column 'name' at row 1")

I am not doing any pre-population of data. So I checked the tables
whose names start with "django_" and columns called "name" appear for
the django_content_type table and the django_site tables. The former
is varchar(100) and the latter is varchar(50).

I am definitely safe as far as the django_site table is concerned. And
I am also safe with the django_content_type table so I'm not sure why
this is happening.

Where does Django populate the django_content_type.name column from? I
am guessing it would take the model name or the verbose_name if
supplied.

All my models are named well within the varchar(100) limit.

Any idea what is going on? By the way, I'm also using contrib.auth.

Regards.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to