How to Solve NameError: name 'Resource' is not defined -- flask_restful

Solution: Import the 'Resource' module

To Solve the error, add the following line to the top of your code.

from flask_restful import Resource

 

For more information:
Python flask_restful Resource