Please, install django_extentions, werkzeug debuger and try to see what exactly 
where the issue is with the runserver_plus command (in browser debugger so 
you'll get the variables that are missing here.
Most probably, your timezone field causes the issue.

Regards,
Xavier.

Le 9 août 2010 à 22:40, Daniel França a écrit :

> Thanx for all the help,
> I tried to run on Sqlite3, and I don't if it's bad or good news, but there's 
> error even in Sqlite3
> 
> just when I tried to create the db (syncdb) I get just after I input my users 
> data or when I try to create a user in shell:
> Traceback (most recent call last):
>   File "manage.py", line 31, in <module>
>     execute_from_command_line()
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 429, in execute_from_command_line
>     utility.execute()
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 379, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py",
>  line 191, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py",
>  line 218, in execute
>     output = self.handle(*args, **options)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py",
>  line 347, in handle
>     return self.handle_noargs(**options)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/commands/syncdb.py",
>  line 103, in handle_noargs
>     emit_post_sync_signal(created_models, verbosity, interactive, db)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/sql.py",
>  line 185, in emit_post_sync_signal
>     interactive=interactive, db=db)
>   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 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>  line 44, in create_superuser
>     call_command("createsuperuser", interactive=True)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py",
>  line 166, in call_command
>     return klass.execute(*args, **defaults)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py",
>  line 218, in execute
>     output = self.handle(*args, **options)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
>  line 134, in handle
>     User.objects.create_superuser(username, email, password)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/auth/models.py",
>  line 133, in create_superuser
>     u = self.create_user(username, email, password)
>   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 
> 61, in create_account
>     account, created = 
> Account.objects.get_or_create(user=instance,timezone='America/Sao_Paulo')
>   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 366, in get_or_create
>     return self.get(**kwargs), False
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py",
>  line 336, in get
>     num = len(clone)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py",
>  line 81, in __len__
>     self._result_cache = list(self.iterator())
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/query.py",
>  line 269, in iterator
>     for row in compiler.results_iter():
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
>  line 672, in results_iter
>     for rows in self.execute_sql(MULTI):
>   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/sqlite3/base.py",
>  line 200, in execute
>     return Database.Cursor.execute(self, query, params)
> sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
> 
> 

-- 
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