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 - Gabriel Ionicescu, <
ionicescu.alexandrugabr...@gmail.com> wrote:

> 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 have:
>   DATABASES = {
>      'default': {
>          'ENGINE': 'django.db.backends.sqlite3',
>          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
>      }
> }
> MEDIA_ROOT = os.path.join(BASE_DIR, 'images')
> MEDIA_URL = '/images/'
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3e36f332-c199-41b7-baf3-43da1c3d437en%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/3e36f332-c199-41b7-baf3-43da1c3d437en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE9iLW1PaNA3yzKzr1nGZWgkkrp4cKXxmsJ%2BBNyjUPpTmHupTw%40mail.gmail.com.

Reply via email to