Luis Norambuena
Python / Django developer
Aspiring rustacean
Good idea! But the borders don’t look good with a darker background. I’m seeing this right now: https://0x0.st/H0JJ.png
Same problem here!
django-tui 23.9 adds an interactive shell for running django ORM queries: https://fosstodon.org/@anze3db/111608276020943202
TalkPython episode about Memray: https://talkpython.fm/episodes/show/425/memray-the-endgame-python-memory-profiler
Part 2, PostgreSQL: https://www.paulox.net/2023/11/24/database-generated-columns-part-2-django-and-postgresql/
Part 3, GeoDjango & PostGIS: https://www.paulox.net/2023/12/11/database-generated-columns-part-3-geodjango-and-postgis/
Look at ForeignKey -> Arguments: https://docs.djangoproject.com/en/4.2/ref/models/fields/#arguments
In the sample in the linked page, deleting a Person
object would also delete Order
object/s linked to that particular person via the ForeignKey
edit: although the syntax is usually on_delete=models.CASCADE