from flask import Flask, render_template, flash, request, Markup, \
    session, redirect, url_for, escape, Response, abort, send_file, jsonify
from flask.ext.login import login_required, current_user

from maediprojects import app
from maediprojects import db
import models
from views import activities, api, users, codelists
from query import activity as qactivity
from query import setup as qsetup

@app.route("/")
def dashboard():
    return render_template("home.html",
                loggedinuser=current_user,
                activities = qactivity.list_activities()
                          )

@app.route("/setup/")
def setup():
    qsetup.setup()
    return "OK"

@app.route("/setup/<country_code>/")
def setup_country(country_code):
    qsetup.import_locations(country_code)
    return "OK"
@@ -194,17 +194,16 @@
 nt_user%0A
-%0A
 from mae
@@ -227,34 +227,9 @@
  app
-%0Afrom maediprojects import
+,
  db%0A

Move to same line