Python 运行WSGI应用程序时出错-client_secrets.json

Python 运行WSGI应用程序时出错-client_secrets.json,python,django,google-api,pythonanywhere,django-login,Python,Django,Google Api,Pythonanywhere,Django Login,我正在使用django制作一个web应用程序,但当我运行该应用程序时,我遇到以下错误: 我已经在项目路径中上传了我的client_secrets.json文件,我确信我没有输入错误 设置.py GOOGLE_OAUTH2_CLIENT_SECRETS_JSON = 'client_secrets.json' WSGI.py # This file contains the WSGI configuration required to serve up your # web applicati

我正在使用django制作一个web应用程序,但当我运行该应用程序时,我遇到以下错误:

我已经在项目路径中上传了我的client_secrets.json文件,我确信我没有输入错误

设置.py

GOOGLE_OAUTH2_CLIENT_SECRETS_JSON = 'client_secrets.json'
WSGI.py

# This file contains the WSGI configuration required to serve up your
# web application at http://bohosul02.pythonanywhere.com/
# It works by setting the variable 'application' to a WSGI handler of some
# description.
#
# The below has been auto-generated for your Django project

import os
import sys

# add your project directory to the sys.path
project_home = '/home/bohosul02/misitio'
if project_home not in sys.path:
    sys.path.insert(0, project_home)

# set environment variable to tell django where your settings.py is
os.environ['DJANGO_SETTINGS_MODULE'] = 'gfglogin.settings'

# serve django via WSGI
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

您使用的是相对路径名(
client\u secrets.json
),而没有注意您的工作目录是什么。如果您使用文件的完整路径,那么它将能够找到它。

您使用的是相对路径名(
client\u secrets.json
),而不注意您的工作目录是什么。如果您使用文件的完整路径,那么它将能够找到它