How to build models for database interaction in Django in Python
The bridge between Python objects and a database relies on translating a class into a CREATE TABLE statement. Robust ORMs use descriptor objects and metaclasses for schema definition. A migration system then handles schema evolution by comparing models to the database and generating SQL changes.
The post How to build models for database interaction in Django in Python appeared first on Python FAQ.