在DjangoApp使用django-facebook connect时获取db_type()错误 [英] Getting db_type() error while using django-facebook connect for DjangoApp
本文介绍了在DjangoApp使用django-facebook connect时获取db_type()错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用django-1.4,sqlite3,django-facebookconnect
按照Wiki中的说明设置。
python manage.py syncdb抛出一个错误。
创建表...
创建表auth_permission
创建表auth_group_permissions
创建表auth_group
创建表auth_user_user_permissions
创建表auth_user_groups
创建表auth_user
创建表django_content_type
创建表django_session
创建表django_site
创建表blog_post
创建表blog_comment
创建表django_admin_log
追溯(最近的最后一次调用):
文件manage.py,第10行,
execute_from_command_line(sys.argv)
文件/usr/local/lib/python2.7/dist-packages/django/core/management/init.py,第443行,在execute_from_command_line
utility.execute()
文件/usr/local/lib/python2.7/dist-packages/django/core/management/init.py,第382行,执行
self.fetch_command (子命令).run_from_argv(self.argv)
文件/usr/local/lib/python2.7/dist-pack年龄/ django / core / management / base.py,第196行,在run_from_argv
self.execute(* args,** options。 dict )
文件/ usr /local/lib/python2.7/dist-packages/django/core/management/base.py,第232行,执行
output = self.handle(* args,** options)
文件/usr/local/lib/python2.7/dist-packages/django/core/management/base.py,第371行,处理
return self.handle_noargs(** options)
文件/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py,第91行,在handle_noargs
sql,references = connection.creation.sql_create_model(model ,self.style,seen_models)
档 /usr/local/lib/python2.7/dist-packages/django/db/backends/creation.py,第44行,在sql_create_model
col_type = f.db_type(连接= self.connection)
类型错误:db_type()得到了意想不到的关键字参数 '连接'
'p>是否有任何溶液??
解决案
您应该使用的Django的Facebook
相反,它是多,这是积极支持:)
I'm using django-1.4 , sqlite3 , django-facebookconnect
Following instructions in Wiki to setup .
"python manage.py syncdb" throws an error .
Creating tables ... Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_user_permissions Creating table auth_user_groups Creating table auth_user Creating table django_content_type Creating table django_session Creating table django_site Creating table blog_post Creating table blog_comment Creating table django_admin_log Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 443, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(*args, **options.dict) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 232, in execute output = self.handle(*args, **options) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 371, in handle return self.handle_noargs(**options) File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", line 91, in handle_noargs sql, references = connection.creation.sql_create_model(model, self.style, seen_models) File "/usr/local/lib/python2.7/dist-packages/django/db/backends/creation.py", line 44, in sql_create_model col_type = f.db_type(connection=self.connection) TypeError: db_type() got an unexpected keyword argument 'connection'
Is there any solution ??
解决方案
You should use django-facebook
instead, it does that and more and it is actively supported :)
这篇关于在DjangoApp使用django-facebook connect时获取db_type()错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文