time to time i am facing "no such a column" error during django backend, django-admin development. when i face this issue, i cannot solve it. so that;
- i detele
db.sqllite3database file in my project location. - i delete migrations files in application folder
/djangioapp/migrations/ - i run
makemigrations,migrateandcreatesuperusercommands.
i face with this error when i make changes on my Model. even more, i updated my model, i run makemigrations and migrate commands and i got this error no such a column when i try to access /admin in my djnago project.
actually, after making migrations with makemigrations and migrate; i see the changes in 0001_initial.py file but it does not apply in database.
is there any practical solution for "no such a column" error?
i face with this error when i make changes on my Model. even more, i updated my model, i run makemigrations and migrate commands and i got this error no such a column when i try to access /admin in my djnago project.
actually, after making migrations with makemigrations and migrate; i see the changes in 0001_initial.py file but it does not apply in database.
Try This commands