Xavier, I think we are almost there :P
because there's a timezone field in my account model:

class Account(models.Model):

    user = models.ForeignKey(User, unique=True, verbose_name=_('user'))

    timezone = TimeZoneField(_('timezone'))
    language = models.CharField(_('language'), max_length=10,
choices=settings.LANGUAGES, default=settings.LANGUAGE_CODE)

    def __unicode__(self):
        return self.user.username

I tried to comment the line, but then the create_user abort with an
constraint timezone error.

On Sat, Aug 7, 2010 at 2:22 PM, Xavier Ordoquy <xordo...@linovia.com> wrote:

> And what's your Account model ?
> I noticed it is in its get_or_create that you get the error.
>
> Regards,
> Xavier.
>
> Le 7 août 2010 à 18:52, Daniel França a écrit :
>
> Same error =/
> but now,I don't know why.. it's saving at the db. The error still happens,
> but the data is in the database
>
> On Sat, Aug 7, 2010 at 12:54 PM, Xavier Ordoquy <xordo...@linovia.com>wrote:
>
>> Sorry, I just woke up form a sleep :)
>> I notice you get-or-create a user.
>> However, did you try to call get or create with specifying the arguments ?
>> first_name = "...", and so on ?
>> Does it still give an error ?
>>
>> Regards,
>> Xavier.
>>
>> Le 7 août 2010 à 17:46, Xavier Ordoquy a écrit :
>>
>> I just googled your error and found:
>> http://www.nerdydork.com/django-programmingerror-cant-adapt.html
>> According to the first comment, you might do something wrong with the
>> arguments types.
>> Unless you give a table description (\d from psql shell) and the model I'm
>> not sure I can help you further.
>>
>> Regards,
>> Xavier.
>>
>> As the stack seems to have a
>>
>> Le 7 août 2010 à 17:21, Daniel França a écrit :
>>
>> I just created my db using django manage syncdb, I think it should create
>> right.
>> or how can I see the encode of each tables?
>> I'm using postgresql 8.4
>> maybe I'll need reinstall everything =S
>>
>> On Sat, Aug 7, 2010 at 6:49 AM, Xavier Ordoquy <xordo...@linovia.com>wrote:
>>
>>>
>>> Le 7 août 2010 à 06:44, Daniel França a écrit :
>>>
>>> > My database is UTF-8, it's fine, doesn't?.
>>> > I'm afraid to reinstall everything from ports and start to get a lot
>>> 64-32 bits incompatible issues like happened before =/
>>>
>>> I think that should be fine with a utf-8 DB.
>>> Are you sure your tables are UTF-8 ?
>>> What database are you using ? mysql ? postgres ? I had no issue with both
>>> and I have a couple of non pure ascii sites.
>>> However, when I moved to snow leopard, I recompiled mysql/postgres and
>>> the python drivers.
>>>
>>> Regards,
>>> Xavier.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To post to this group, send email to django-us...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@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-us...@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-us...@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-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@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-us...@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-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@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-us...@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