How to Solve NameError: name 'database_exists' is not defined -- sqlalchemy_utils

Solution: Import the 'database_exists' module

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

from sqlalchemy_utils.functions import database_exists

 

For more information:
Python sqlalchemy_utils database_exists