mirror of
https://github.com/apache/superset.git
synced 2024-09-19 03:59:49 -04:00
26 lines
562 B
Python
26 lines
562 B
Python
import logging
|
|
from flask import Flask
|
|
from flask.ext.appbuilder import SQLA, AppBuilder, IndexView
|
|
|
|
"""
|
|
Logging configuration
|
|
"""
|
|
|
|
logging.basicConfig(format='%(asctime)s:%(levelname)s:%(name)s:%(message)s')
|
|
logging.getLogger().setLevel(logging.DEBUG)
|
|
|
|
app = Flask(__name__)
|
|
app.config.from_object('config')
|
|
db = SQLA(app)
|
|
|
|
class MyIndexView(IndexView):
|
|
index_template = 'index.html'
|
|
|
|
appbuilder = AppBuilder(
|
|
app, db.session, base_template='panoramix/base.html',
|
|
indexview=MyIndexView)
|
|
|
|
get_session = appbuilder.get_session
|
|
|
|
from app import views
|