缺少django-allauth教程:在我们的数据库中创建一些记录

时间:2014-02-04 22:03:27

标签: python mysql django facebook django-allauth

我被困在The missing django-allauth tutorial

  

现在我们必须在django-site之前在我们的数据库中创建一些记录   而django-allauth将从地上的洞中知道他们的头:

     
    

UPDATE django_site SET DOMAIN ='127.0.0.1:8000',name ='Vort'WHERE     ID = 1; INSERT INTO socialaccount_socialapp(提供者,姓名,秘密,     client_id,key)VALUES(“facebook”,“Facebook”,     “--put-your-own-app-secret-here--”,“ - output-your-own-app-id-here--”,     ''); INSERT INTO socialaccount_socialapp_sites(socialapp_id,site_id)     价值观(1,1);

  

我应该如何更新数据库?

1 个答案:

答案 0 :(得分:1)

您必须登录http://127.0.0.1:8000/admin/并在社交应用中添加Facebook。