Re: problem bd python manage.py makemigrations & migrate

2023-06-20 Thread Issa N'golo Coulibaly
First created an application and then in the settings.py set the constant AUTH_USER_MODEL = "my_app_name.User" and do makemigrations then migrate for the very first time. your custom User table does not exist in the database that's why the exception is thrown. On Sun, 11 Jun 2023, 19:00 Alexandru

access an attribute of a target model in a many-to-many relationship

2022-11-29 Thread Issa N'golo Coulibaly
Hi, when I try to access an attribute of a target model in a many to many relationship, I get an error : AttributeError: 'ManyRelatedManager' object has no attribute 'full_name' so, how to do ? An exemple: Class Person(models.Model): full_name = models.CharField(max_length=200) email =