grafana-toolbox / grafana-pandas-datasource

Grafana Pandas Datasource - using Python for generating timeseries-, table-data and annotations
GNU Affero General Public License v3.0
51 stars 15 forks source link

Usage of create_app() v/s app=Flask(__name__) #17

Closed tvirmani closed 1 year ago

tvirmani commented 1 year ago

Usage of create_app() in the code v/s app = Flask(name) .It could be the python way but i need suggestion commenting out create_app() causes:

TypeError: DataFrame.resample() got an unexpected keyword argument 'how'

if I use create_app() it doesn't give this error but any print('test',flush=True) doesn't print anything on console .I tried debugger and many forms of print ..but failed . Now i can run this app but i am keen to use repeated prints on console to understand the flow . Is it must of use create_app() function in code . How can I now print values on console using print Any suggestions ?

tvirmani commented 1 year ago

Doing something wrong . Figured it out now ..Closing