Daniel, Did you manage to have the application running on sqlite3 ... ? I develop on Mac & have few issues... so may be you could first ensure everything is working without postgresql connector ... ?
\T, On Aug 9, 4:24 am, Daniel França <daniel.fra...@gmail.com> wrote: > tried, nothing :( > I'm getting crazy with Mac OS, I think I'll go back to Linux :S > > On Sun, Aug 8, 2010 at 4:34 AM, Xavier Ordoquy <xordo...@linovia.com> wrote: > > It won't work by commenting the timezone field since it has been created > > with a non null constraint on your db. > > Have you tried to get_or_create the account with timezone and language set > > to some value ? > > > Regards, > > Xavier. > > > Le 8 août 2010 à 04:09, Daniel França a écrit : > > > More information. > > here: > > def create_account(sender, instance=None, **kwargs): > > if instance is None: > > return > > account, created = Account.objects.get_or_create(user=instance) > > > post_save.connect(create_account, sender=User) > > > If I comment the *post_save.connect*, there's no exception =) but, of > > course the code doesn't do what it should do. > > > So, I don't know why, but the error is in the connect... maybe because of > > timezone attribute of user > > anyone has any idea? > > > 2010/8/7 Daniel França <daniel.fra...@gmail.com> > > >> 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. > > > -- > > 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.