Django ORM with Spanner

The Django ORM is a powerful standalone component of the Django web framework that maps Python objects to relational data. It provides a Pythonic interface to the underlying database, and includes tools for automatically generating schema changes and managing schema version history.

The django-google-spanner package is a third-party database backend for using Spanner with the Django ORM, powered by the Spanner Python client library.

With this integration, Django applications can take advantage of Spanner's high availability and consistency at scale.

Install, configure, and use

Refer to the django-google-spanner documentation for instructions on installing and configuring your environment.

What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月14日 UTC.