How to Solve NameError: name 'PageNotAnInteger' is not defined -- django
Solution: Import the 'PageNotAnInteger' module
To Solve the error, add the following line to the top of your code.
from django import PageNotAnInteger
For more information:
Python django PageNotAnInteger