Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Heroku上部署的Django live应用程序上添加Google allauth_Django_Heroku_Django Allauth - Fatal编程技术网

在Heroku上部署的Django live应用程序上添加Google allauth

在Heroku上部署的Django live应用程序上添加Google allauth,django,heroku,django-allauth,Django,Heroku,Django Allauth,我正在尝试将Google身份验证添加到部署在Heroku上的live Django应用程序中。我已经将www.example.com和example.com添加为Site对象,并将它们添加到Heroku上管理界面的社交应用程序对象上的站点列表中。但是,现在我有了根(example.com)和子域www,我无法在设置中同时添加这两个站点id。如何在设置中正确设置站点id?因为我现在得到一个错误: allauth.socialaccount.models.SocialApp.DoesNotExist

我正在尝试将Google身份验证添加到部署在Heroku上的live Django应用程序中。我已经将
www.example.com
example.com
添加为
Site
对象,并将它们添加到Heroku上管理界面的
社交应用程序
对象上的站点列表中。但是,现在我有了根(
example.com
)和子域
www
,我无法在设置中同时添加这两个站点id。如何在设置中正确设置站点id?因为我现在得到一个错误:

allauth.socialaccount.models.SocialApp.DoesNotExist:SocialApp匹配查询不存在。

当我访问时,我得到一个500内部服务器错误:

http://www.example.com/accounts/google/login/

根目录是否足以添加为
站点