Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
L'ORM di Django è un potente componente autonomo del
framework web Django che mappa gli oggetti Python
ai dati relazionali. Fornisce un'interfaccia Python al database sottostante e include strumenti per generare automaticamente le modifiche dello schema e gestire la cronologia delle versioni dello schema.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-08-11 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."]]