forked from 3wordchant/capsul-flask
starting to build console controller and views
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
import os
|
||||
|
||||
from flask import Flask
|
||||
from flask_mail import Mail
|
||||
from flask import render_template
|
||||
import os
|
||||
|
||||
from capsulflask import virt_model
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
@ -21,6 +23,7 @@ def create_app():
|
||||
)
|
||||
|
||||
app.config['FLASK_MAIL_INSTANCE'] = Mail(app)
|
||||
app.config['VIRTUALIZATION_MODEL'] = virt_model.MockVirtualization()
|
||||
|
||||
from capsulflask import db
|
||||
|
||||
@ -29,8 +32,8 @@ def create_app():
|
||||
from capsulflask import auth, landing, console
|
||||
|
||||
app.register_blueprint(landing.bp)
|
||||
|
||||
app.register_blueprint(auth.bp)
|
||||
app.register_blueprint(console.bp)
|
||||
|
||||
app.add_url_rule("/", endpoint="index")
|
||||
|
||||
|
Reference in New Issue
Block a user