ops, sorry. python 2.7 django 1.2.1 =}
thanx, I'll look at this

On Fri, Aug 6, 2010 at 1:02 PM, <xordo...@linovia.com> wrote:

> Hi daniel,
>
> I doubt your python version is 1.2.1, maybe it's rather Django version :)
> However, the issue django stated looks pretty clear to me. You created a
> database with a wrong encoding type.
> You should have a look at:
> http://docs.djangoproject.com/en/1.2/ref/unicode/
>
> Regards,
> Xavier.
>
> On Fri, 6 Aug 2010 11:13:40 -0300, Daniel França <daniel.fra...@gmail.com>
> wrote:
> > Hi, I'm still get error trying to run my project on Mac =(Now the
> > standalone server is running fine, but when I try to create a new user I
> > get the error: "Can't adapt type 'US/Eastern", I tried to change my
> > TIME_ZONE in setting, but no success. I can simulate this error in
> > console, and here's the output:
> >>>> from django.contrib.auth.models import User >>> new_user =
> > User.objects.create_user("daniel", "daniel.fra...@gmail.com [1]",
> > "daniel") Traceback (most recent call last):  File "", line 1, in
> >   File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/models.py",
> > line 129, in create_user     user.save(using=self._db)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py",
> > line 435, in save     self.save_base(using=using,
> > force_insert=force_insert, force_update=force_update)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py",
> > line 543, in save_base     created=(not record_exists),
> > raw=raw)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
> > line 162, in send     response = receiver(signal=self, sender=sender,
> > **named)  File
> > "/Users/danielfranca/workspace/django/view/tint/apps/account/models.py",
> > line 60, in create_account     account, created =
> > Account.objects.get_or_create(user=instance)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/manager.py",
> > line 135, in get_or_create     return
> > self.get_query_set().get_or_create(**kwargs)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py",
> > line 373, in get_or_create     obj.save(force_insert=True,
> > using=self.db)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py",
> > line 435, in save     self.save_base(using=using,
> > force_insert=force_insert, force_update=force_update)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/base.py",
> > line 528, in save_base     result = manager._insert(values,
> > return_id=update_pk, using=using)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/manager.py",
> > line 195, in _insert     return insert_query(self.model, values,
> > **kwargs)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py",
> > line 1479, in insert_query     return
> > query.get_compiler(using=using).execute_sql(return_id)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
> > line 783, in execute_sql     cursor = super(SQLInsertCompiler,
> > self).execute_sql(None)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
> > line 727, in execute_sql     cursor.execute(sql, params)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/util.py",
> > line 15, in execute     return self.cursor.execute(sql,
> > params)  File
> >
>
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py",
> > line 44, in execute     return self.cursor.execute(query,
> > args)DatabaseError: can't adapt type 'US/Eastern'
> > Anyone have any ideia what it can be?my python version is 1.2.1
> >
> > On Mon, Jul 19, 2010 at 9:01 AM, Shawn Milochik  wrote:
> >  Daniel,
> > Glad to help. If you're new to the Mac and have questions just let me
> > know.
> >  Shawn
> > sh...@milochik.com [3] Google Chat: shawn.m...@gmail.com [4]
> >
> > 2010/7/19 Daniel França
> >  thanks a lot, now it's working.. at least this part.=)
> >
> >  On Sun, Jul 18, 2010 at 11:10 PM, Shawn Milochik  wrote:
> >  This is a known (and common) problem. Here's an easy fix that I've used
> > many times.
> >
> >  http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html [7]
> >
> >  Incidentally, you can replace "make install" with "make altinstall" to
> > add Python 2.7 to your system without replacing the default Python.
> >
> >  Shawn
> >
> >  --
> >  You received this message because you are subscribed to the Google
> > Groups "Django users" group.
> >  To post to this group, send email to django-users@googlegroups.com [8].
> >  To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>[9].
> >  For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en [10].
> >
> >  --
> >  You received this message because you are subscribed to the Google
> > Groups "Django users" group.
> >  To post to this group, send email to django-users@googlegroups.com
> > [11].
> >  To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>[12].
> >  For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en [13].
> >
> >  --
> >  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.
> >
> >
> > Links:
> > ------
> > [1] mailto:daniel.fra...@gmail.com
> > [2] mailto:sh...@milochik.com
> > [3] mailto:sh...@milochik.com
> > [4] mailto:shawn.m...@gmail.com
> > [5] mailto:daniel.fra...@gmail.com
> > [6] mailto:sh...@milochik.com
> > [7] http://shawnmilo.blogspot.com/2009/11/psycopg2-on-snow-leopard.html
> > [8] mailto:django-users@googlegroups.com
> > [9] 
> > mailto:django-users%2bunsubscr...@googlegroups.com<django-users%252bunsubscr...@googlegroups.com>
> > [10] http://groups.google.com/group/django-users?hl=en
> > [11] mailto:django-users@googlegroups.com
> > [12] 
> > mailto:django-users%2bunsubscr...@googlegroups.com<django-users%252bunsubscr...@googlegroups.com>
> > [13] 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