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

Re: problem bd python manage.py makemigrations & migrate

2023-06-20 Thread Alexandru - Gabriel Ionicescu
Hello Bradie, Is not work. I delete all db and migrate but is not working.. În dum., 11 iun. 2023 la 22:54, Bradie Poa a scris: > This is mostly cause be mismatch of migrations. In the migrations folder. > If deleting the db fails to work for you. You need to delete or migrations > folders and

Re: problem bd python manage.py makemigrations & migrate

2023-06-11 Thread Bradie Poa
This is mostly cause be mismatch of migrations. In the migrations folder. If deleting the db fails to work for you. You need to delete or migrations folders and then re-do the process of makemigrations and migrate. This will play you the magic On Sun, Jun 11, 2023, 22:12 Bhuvnesh Sharma wrote:

Re: problem bd python manage.py makemigrations & migrate

2023-06-11 Thread Bradie Poa
Delete the delete the database, makemigrations and then migrate. On Sun, Jun 11, 2023, 22:12 Bhuvnesh Sharma wrote: > Hi, > This seems a bit unexpected behaviour,could you tell us all the steps > you followed from the beginning and at what step is it giving error? > > On Mon, Jun 12, 2023,

Re: problem bd python manage.py makemigrations & migrate

2023-06-11 Thread Bhuvnesh Sharma
Hi, This seems a bit unexpected behaviour,could you tell us all the steps you followed from the beginning and at what step is it giving error? On Mon, Jun 12, 2023, 12:30 AM Alexandru - Gabriel Ionicescu < ionicescu.alexandrugabr...@gmail.com> wrote: > hello, I have a project and I use django.

problem bd python manage.py makemigrations & migrate

2023-06-11 Thread Alexandru - Gabriel Ionicescu
hello, I have a project and I use django. I'm trying to do my migrations for bd but I can't do them. it gives me the error django.db.utils.OperationalError: no such table: user_user. I also made a User class (AbstractUser) and it still doesn't work. What can I do? I mention that in settings.py I