Skip to content Skip to sidebar Skip to footer

Django Manytomany Relationship Error

i want to set a manytomany relationship in django models.py : class student(models.Model): id = models.AutoField(primary_key=True) First_Name = models.CharField(max_length=

Solution 1:

Check that your app is included in a list of installed apps in settings file. Then check that your migrations applied. Commands that can help you:

  • ./manage.py check
  • ./manage.py makemigrations
  • ./manage.py migrate

Post a Comment for "Django Manytomany Relationship Error"