2π
β
In either circumstance (AWS or local branch), the first step is to make sure that your updated code is, in fact, deployed on the instance properly.
-
Navigate to to your project
cd /path/to/django/project
-
Check the
Example
class definition in the file:grep -A20 'class Example\(' models.py
-
Verify that your field has, in fact, been removed from the code on both instances or your local branch.
-
Do a global search in your project for use of
example_field
:cd /path/to/django/project find . -name '*.py' | xargs grep -Ri example_field
-
Remove all pyc files and restart your app server:
cd /path/to/django/project find . -name '*.pyc' -delete
π€2ps
Source:stackexchange.com