How to Solve NameError: name 'Configurator' is not defined -- pyramid

Solution: Import the 'Configurator' module

# Add the following line to the top of your code
from pyramid.config import Configurator

 

For more information:
pyramid Configurator