3๐
โ
As stated here: Django Programming error column does not exist even after running migrations
Something may have gone wrong in your migration process.
- Go to your database and find a table named
django_migrations
where
all the migrations are listed. - Find the row with the migration in which you added the
avatar
column to your model and delete it from the database (only the row). - Migrate again:
./manage.py migrate
Another possibility is that you are using Django Toolbar
like what happened here: Django Migration Error: Column does not exist, in which case you need to comment the toolbar in your installed apps and rerun migrations.
๐คJohn Moutafis
0๐
Did you apply a new migration with these changes?
You can check this using showmigrations
or use makemigrations
to create a migration and migrate
to apply it.
๐คYahor Tsyplakou
- [Django]-Strange Issue When Minifying CSS via django-pipeline
- [Django]-Using TEMPLATE_STRING_IF_INVALID with Django 1.8
- [Django]-Have different base image for an application in docker
- [Django]-How do you access/configure summaries/snippets in Django Haystack
Source:stackexchange.com