Now two different thing happens in the code.. if i change the python version as u mentioned then its gives the same error as this... :
2018-11-14 14:46:34,564: ***************************************************
2018-11-15 06:16:03,682: Error running WSGI application
2018-11-15 06:16:03,688: InvalidClientSecretsError: ('Error opening file', 'client_secret.json', 'No such file or directory', 2)
2018-11-15 06:16:03,688: File "/var/www/jasneet_pythonanywhere_com_wsgi.py", line 89, in <module>
2018-11-15 06:16:03,688: application = get_wsgi_application()
2018-11-15 06:16:03,688:
2018-11-15 06:16:03,689: File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application
2018-11-15 06:16:03,689: django.setup(set_prefix=False)
2018-11-15 06:16:03,689:
2018-11-15 06:16:03,689: File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 27, in setup
2018-11-15 06:16:03,689: apps.populate(settings.INSTALLED_APPS)
2018-11-15 06:16:03,689:
2018-11-15 06:16:03,689: File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
2018-11-15 06:16:03,689: app_config.import_models()
2018-11-15 06:16:03,689:
2018-11-15 06:16:03,689: File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 202, in import_models
2018-11-15 06:16:03,690: self.models_module = import_module(models_module_name)
2018-11-15 06:16:03,690:
2018-11-15 06:16:03,690: File "/home/Jasneet/pms-eknous/pharma_master/models.py", line 12, in <module>
2018-11-15 06:16:03,690: from oauth2client.contrib.django_util.models import CredentialsField
2018-11-15 06:16:03,690:
2018-11-15 06:16:03,690: File "/usr/local/lib/python2.7/dist-packages/oauth2client/contrib/django_util/__init__.py", line 365, in <module>
2018-11-15 06:16:03,690: oauth2_settings = OAuth2Settings(django.conf.settings)
2018-11-15 06:16:03,690:
2018-11-15 06:16:03,690: File "/usr/local/lib/python2.7/dist-packages/oauth2client/contrib/django_util/__init__.py", line 341, in __init__
2018-11-15 06:16:03,690: info = _get_oauth2_client_id_and_secret(settings_instance)
2018-11-15 06:16:03,691:
2018-11-15 06:16:03,691: File "/usr/local/lib/python2.7/dist-packages/oauth2client/contrib/django_util/__init__.py", line 277, in _get_oauth2_client_id_and_secret
2018-11-15 06:16:03,691: return _load_client_secrets(secret_json)
2018-11-15 06:16:03,691:
2018-11-15 06:16:03,691: File "/usr/local/lib/python2.7/dist-packages/oauth2client/contrib/django_util/__init__.py", line 255, in _load_client_secrets
2018-11-15 06:16:03,691: client_type, client_info = clientsecrets.loadfile(filename)
2018-11-15 06:16:03,691:
2018-11-15 06:16:03,691: File "/usr/local/lib/python2.7/dist-packages/oauth2client/clientsecrets.py", line 165, in loadfile
2018-11-15 06:16:03,691: return _loadfile(filename)
2018-11-15 06:16:03,691:
2018-11-15 06:16:03,692: File "/usr/local/lib/python2.7/dist-packages/oauth2client/clientsecrets.py", line 125, in _loadfile
2018-11-15 06:16:03,692: exc.strerror, exc.errno)
2018-11-15 06:16:03,692: ***************************************************
2018-11-15 06:16:03,692: If you're seeing an import error and don't know why,
2018-11-15 06:16:03,692: we have a dedicated help page to help you debug:
2018-11-15 06:16:03,692: https://help.pythonanywhere.com/pages/DebuggingImportError/
2018-11-15 06:16:03,692: ***************************************************
secondly if i comment this
# then:
# from django.core.wsgi import get_wsgi_application
# application = get_wsgi_application()
then i shows the hello world page...
please brief me where i m wrong...
[edit by admin: formatting]