I can't get product vendor id in django

I am working on an e-commerce project. But the product vendor id is not registered in the database. I’ve tried many ways. I would be glad if you help. seller_id always comes empty What are your suggestions? models.py class Product(models.Model): name = models.CharField(verbose_name="Məhsulun adı", max_length=150) description = models.TextField( verbose_name="Məhsul haqda məlumat", null=True) price = models.FloatField(verbose_name="Məhsulun… Read More I can't get product vendor id in django

Why does my for loop run indefinitely and doesn't stop when the if condition is met?

I’m trying to read text from a file and using a loop to find a specific text from the file. The data in the file is listed vertically word by word. When I run the script, after it prints the last word in the file it repeats itself from the beginning indefinitely. with open(‘dictionary.txt’,’r’) as… Read More Why does my for loop run indefinitely and doesn't stop when the if condition is met?