from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.security import Security, SQLAlchemyUserDatastore, login_required


app = Flask(__name__, static_folder='static', static_url_path='/static')
app.config.from_object('mailflow.settings')
db = SQLAlchemy(app)
import views, models

user_datastore = SQLAlchemyUserDatastore(db, models.User, models.Role)
security = Security(app, user_datastore)


def main():
    app.run(debug = True)

@@ -17,16 +17,50 @@
 t Flask%0A
+from flask.ext.admin import Admin%0A
 from fla
@@ -95,16 +95,16 @@
 Alchemy%0A
-
 from fla
@@ -177,17 +177,16 @@
 quired%0A%0A
-%0A
 app = Fl
@@ -250,16 +250,52 @@
 tatic')%0A
+admin = Admin(app, name='Mailflow')%0A
 app.conf
@@ -351,16 +351,17 @@
 my(app)%0A
+%0A
 import v
@@ -445,16 +445,16 @@
 s.Role)%0A
+
 security
@@ -487,17 +487,16 @@
 store)%0A%0A
-%0A
 def main

Add base admin view