2012-04-27 40 views
0

我使用的Django 1.4,sqlite3的,Django的facebookconnect获取db_type()错误,而使用Django Facebook的连接对于DjangoApp

继维基安装说明。 “python manage.py syncdb”会引发错误。

 
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' 

有没有解决方案?

+2

你没看到Django的facebookconnect的主页上这样评论:“警告:这个东西是过时的 - DON” T使用它 - 使用这个代替:http://github.com/ryanmark/django_facebook_oauth“? – 2012-04-27 19:41:13

+0

嘿丹尼尔谢谢...我忘了阅读。 – ashish2py 2012-04-27 19:58:54

回答

1

您应该使用django-facebook相反,它是多,这是积极支持:)