I am Islam Kamel, I work as a Backend developer, use python language with the wonderful framework Django make web applications and APIs and I like to create scripts, always look for everything that is new in the world of technology, I like to be the best always.
Nothing here yet.
Let's implement (1-M) relation on Django (ForeignKey) from django.db import models class Address ( models.Model ): ..... ..... ..... class User ( models.Model ): ..... ..... ..... address = models.OneToOneField(Address, on_delete=models.CASCADE) I think you need to change that line address To be ForeignKey instead of OneToOne