You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move location to QualityAnalysis and make sure you are in virtual environment(venv)
todo.py, init.py need to change like this
=> from QualityAnalysis.flasktodo.graph -> from flasktodo.graph
=> Totally 5 points
[todo.py]
1) from QualityAnalysis.flasktodo.graph import legend2M, legend1M, legend0M, ABlabels, Avalues2M, Avalues1M, Avalues0M, Bvalues2M, Bvalues1M,...
2) from QualityAnalysis.flasktodo.indicator import basic_function,pivot_function, hazard_function, ppm_function, ffr_function
3) hazard_json_path='QualityAnalysis/flasktodo/static/json/hazard.json'
[init.py]
4) from QualityAnalysis.flasktodo import todo
5) from QualityAnalysis.flasktodo.todo import bp
If you want to change to visit, http://127.0.0.1:5000, to see home page then remove url_prefix in init.py
=> todo.register_blueprint(bp,url_prefix='/qualityanalysisdashboard')
How to run flask in VideoTutorial
Move location to VideoTutorial and make sure you are in virtual environment(venv)
action.py, init.py need to change like this
=> from QualityAnalysis.flasktodo.graph -> from flasktodo.graph
=> Totally 5 points
[action.py]
1) from VideoTutorial.flaskapp.models import db, VideoSurvey
[init.py]
2) from VideoTutorial.flaskapp import action
3) from VideoTutorial.flaskapp.models import db