Posts by Mateus de Morais • 5 points
1 post
-
0
votes1
answer251
viewsA: How do I insert data into a foreign key table in Django?
Assuming there is a username user johndoe: user = User.objects.get(username='johndoe') In this case, you would create an object of Endereco as follows: Endereco.objects.create( cep='70000000',…
djangoanswered Mateus de Morais 5