You can upgrade the views.py manually and then can apply this as per the guide.
upgrade the views.py manually