DryORM
Code
Result
no cache
SQLite
PostgreSQL 17.4
MariaDB 11.4.5
Select a template
dryorm features
basic
bulk create
bulk fake
csv import
basic fk
self fk
user profile
dryorm tabular output
from django.db import models class Author(models.Model): name = models.CharField(max_length=100) def __str__(self): return self.name class Book(models.Model): title = models.CharField(max_length=100) author = models.ForeignKey(Author, on_delete=models.CASCADE) class Meta: default_related_name = 'books' def __str__(self): return self.title def run(): # Create an Author author = Author.objects.create(name="Jane Austen") # Create some Books Book.objects.create(title="Pride and Prejudice", author=author) Book.objects.create(title="Sense and Sensibility", author=author) # Using the default_related_name print(f"Books by {author.name}:") for book in author.books.all(): print(f"- {book.title}")
Output
Show Template
No output.
Queries
TCL
T
DDL
D
SELECT
S
INSERT
I
UPDATE
U
DELETE
D
Queries
Q
(
0
)
No queries.
✖ Close
Save & Share
✖
private?
Save
Save & Copy