Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
O ORM do Django é um componente independente poderoso do
framework da Web do Django que mapeia objetos
Python para dados relacionais. Ele fornece uma interface Pythonic para o banco de dados subjacente
e inclui ferramentas para gerar automaticamente alterações de esquema e gerenciar
o histórico de versões do esquema.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-05 UTC."],[],[],null,["# Django ORM with Spanner\n\nThe Django ORM is a powerful standalone component of the\n[Django web framework](https://www.djangoproject.com/) that maps Python objects\nto relational data. It provides a Pythonic interface to the underlying database,\nand includes tools for automatically generating schema changes and managing\nschema version history.\n| **Note:** The PostgreSQL interface for Spanner doesn't support the Django ORM.\n\nThe [django-google-spanner](https://pypi.org/project/django-google-spanner/)\npackage is a third-party database backend for using Spanner with the\nDjango ORM, powered by the\n[Spanner Python client library](https://github.com/googleapis/python-spanner).\n\nWith this integration, Django applications can take advantage of\nSpanner's high availability and consistency at scale.\n\nInstall, configure, and use\n---------------------------\n\nRefer to the\n[django-google-spanner documentation](https://pypi.org/project/django-google-spanner/)\nfor instructions on installing and configuring your environment.\n\nWhat's next\n-----------\n\n- Read our [blog post](/blog/topics/developers-practitioners/django-orm-support-cloud-spanner-now-generally-available) for a walkthrough and insight into how the code is designed.\n- See [code examples](https://github.com/googleapis/python-spanner-django/tree/master/examples) using Django with Spanner.\n- Learn more about the [Django project](https://www.djangoproject.com/).\n- Learn more about [DB API](https://www.python.org/dev/peps/pep-0249/).\n- [File a GitHub issue](https://github.com/googleapis/python-spanner-django/issues) to report a bug or ask a question about using the Django ORM with Spanner."]]