Skip to content

Document settings credentials_uri raise parameter error #582

Closed
@littleczp

Description

@littleczp

Documents settings.py

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 Error Stack
image

Reference Source Code

def connect(
    instance_id,
    database_id,
    project=None,
    credentials=None,
    pool=None,
    user_agent=None,
):

seem only support create a credentials class

branch: master

Metadata

Metadata

Labels

api: spannerIssues related to the googleapis/python-spanner-django 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