Im upgrading my django project from 1.8 to 2.2.0(Using Python 3.6 from virtualenv). I have done the below changes.
- Added on_delete to all the Foreign Key fields
- Changed the url reverse import as from django.urls import reverse
- Included path/re_path instead of url in all the app's url files.
- Changed the MIDDLEWARE_CLASSES import in settings files to MIDDLEWARE = {}
I tried to run the server, still it says "TypeError: init() missing 1 required positional argument: 'on_delete' and it is pointing to /usr2/santhosh/myproject/myapp/migrations/0002_abc.py
What should I do now? Do I need to delete all the migration files from the app and re-run python manage.py migrate or what?? Help me you are aware.