Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

relation "django_admin_log" already exists

Tags:

django

when i try to run python manage.py migrate i run into following error enter image description here

Upon running python manage.py run migrations it says no changes detected. and when i runserver it gives me warning that i have unapplied migrations as well.i have been searching internet for two hours but got not solution. Someone knowing the solution please share :)

like image 303
Shoaib Iqbal Avatar asked May 04 '26 20:05

Shoaib Iqbal


1 Answers

The table in your database that stores migration data to keep track of what has been applied is out of date. Try running python manage.py migrate --fake

like image 117
kevswanberg Avatar answered May 08 '26 15:05

kevswanberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!