2012-04-27 22 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相反,它是多,這是積極支持:)