Skip to content

spanner db_api: credentials_uri raise parameter error #220

@HemangChothani

Description

@HemangChothani

Documents settings.py for python-spanner-django

DATABASES = { 'default': { 'ENGINE': 'django_spanner', 'PROJECT': '<GCP_project_id>', 'INSTANCE': '<instance_id>', 'NAME': '<database_name>', 'OPTIONS': { 'credentials_uri': '<credentials_uri>', }, }, } 

TypeError: connect() got an unexpected keyword argument 'credentials_uri'

Reference issue : googleapis/python-spanner-django#582

The paramter credentials_uri was there when db_api is part of python-spanner-django, but it removed or replaced by credentials parameter when it moved to python-spanner.

Metadata

Metadata

Labels

api: spannerIssues related to the googleapis/python-spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions