How to Solve NameError: name 'static_file' is not defined -- bottle

Solution: Import the 'static_file' module

# Add the following line to the top of your code
from bottle import static_file

 

For more information:
bottle static_file