import os
import sys
from flask import Flask, render_template, request

current_dir = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(current_dir, '..'))

from wm_metrics import fdc
from wm_metrics import wmfr_photography
from wm_metrics import commons_cat_metrics

app = Flask(__name__)

@app.route("/")
def index():
    return render_template('index.html')

@app.route("/fdc")
def fdc_report_page():
    return render_template('fdc-report.html')

if __name__ == "__main__":
    app.run(debug=True)

from flask import Flask, render_template
app = Flask(__name__)

@app.route("/")
def index():
    return render_template('index.html')

@app.route("/fdc")
def fdc_report_page():
    return render_template('fdc-report.html')

if __name__ == "__main__":
    app.run(debug=True)

--- 
+++ 
@@ -1,4 +1,14 @@
-from flask import Flask, render_template
+import os
+import sys
+from flask import Flask, render_template, request
+
+current_dir = os.path.abspath(os.path.dirname(__file__))
+sys.path.insert(0, os.path.join(current_dir, '..'))
+
+from wm_metrics import fdc
+from wm_metrics import wmfr_photography
+from wm_metrics import commons_cat_metrics
+
 app = Flask(__name__)
 
 @app.route("/")
Webapp: Add imports for Wm_metrics module

We have to manually add wm_metrics to the Python Path
