Some more information:

I am getting this from the insertion of auth_permissions, 
in django/db/backends/postgresql_psycopg2/base.py, line 52

'INSERT INTO "auth_permission" ("name", "content_type_id", "codename") 
VALUES (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, 
%s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), 
(%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, 
%s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, 
%s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), 
(%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s), (%s, 
%s, %s), (%s, %s, %s), (%s, %s, %s), (%s, %s, %s)'

args is a long tupple of the create_x, add_x, modify_x and a couple custom 
permissions.  The longest string is 22 characters long.  Since nothing here 
is over 50 characters, is there something I'm missing.  I am also using 
django_guardian

james

On Saturday, 14 July 2012 14:53:03 UTC+8, James Rivett-Carnac wrote:
>
> An old post, but I just had the same problem.
>
> On Monday, 20 September 2010 22:51:30 UTC+8, Valentin Golev wrote:
>>
>> Hello, 
>>
>> I'm trying to deploy my Django application with PostgreSQL. While 
>> trying to insert an object to the database, I'm getting the following 
>> error: 
>>
>>
>> django.db.utils.DatabaseError: value too long for type character 
>> varying(50) 
>>
>>
>> My application were working fine on SQLite. I guess it has something 
>> to do with encoding (my data in in Cyrillic). I thought Django should 
>> truncate in on the application level, but it obviously doesn't. What 
>> can I do (except for truncating data by myself every time)?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/4Ovv5TEOLPUJ.
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.

Reply via email to