[Python] Migrations is not working for this model in my project

Discussão em 'Python' iniciado por Stack, Abril 12, 2025.

  1. Stack

    Stack Membro Participativo

    I have create multiple models in Django project but this model migration is not working in my project can anybody give me the reason for tis problem and how to fix this.

    models.py

    class Profile(models.Model):
    user=models.OneToOneField(User,on_delete=models.CASCADE)
    avatar=models.ImageField(upload_to='avatar/',blank=True,null=True)

    def __str__(self):
    return f"{self.user.email}"


    running migrations output is no change in Migration

    Continue reading...

Compartilhe esta Página