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 <bhuvnesh...@gmail.com> 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, 12:30 AM 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/CA%2BZJHEoB-ooH_sJmPCb8fNrPs1L6rrOvmuwbTS6MKQb8Z3biWg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BZJHEoB-ooH_sJmPCb8fNrPs1L6rrOvmuwbTS6MKQb8Z3biWg%40mail.gmail.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/CAJkmis3DA%2BCUJW%3DJs_wO1skrRdUEKJrM7C9%3DvoCTyrKjkN7kwg%40mail.gmail.com.

Reply via email to