How to Solve NameError: name 'conf' is not defined -- airflow

Solution: Import the 'conf' module

# Add the following line to the top of your code
from airflow.configuration import conf

 

For more information:
airflow conf