-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f4f5b1
commit be6b2fe
Showing
143 changed files
with
17,521 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
recursive-include panoramix/templates * | ||
recursive-include panoramix/static * | ||
recursive-exclude panoramix/static/assets/node_modules * | ||
recursive-include panoramix/static/assets/node_modules/font-awesome * | ||
recursive-exclude panoramix/static/docs * | ||
recursive-include dashed/templates * | ||
recursive-include dashed/static * | ||
recursive-exclude dashed/static/assets/node_modules * | ||
recursive-include dashed/static/assets/node_modules/font-awesome * | ||
recursive-exclude dashed/static/docs * | ||
recursive-exclude tests * | ||
recursive-include panoramix/data * | ||
recursive-include panoramix/migrations * | ||
recursive-include dashed/data * | ||
recursive-include dashed/migrations * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"""Package's main module!""" | ||
|
||
import logging | ||
import os | ||
from flask import Flask, redirect | ||
from flask.ext.appbuilder import SQLA, AppBuilder, IndexView | ||
from flask.ext.appbuilder.baseviews import expose | ||
from flask.ext.migrate import Migrate | ||
|
||
|
||
APP_DIR = os.path.dirname(__file__) | ||
CONFIG_MODULE = os.environ.get('DASHED_CONFIG', 'dashed.config') | ||
|
||
# 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_MODULE) | ||
db = SQLA(app) | ||
migrate = Migrate(app, db, directory=APP_DIR + "/migrations") | ||
|
||
|
||
class MyIndexView(IndexView): | ||
@expose('/') | ||
def index(self): | ||
return redirect('/dashed/featured') | ||
|
||
appbuilder = AppBuilder( | ||
app, db.session, | ||
base_template='dashed/base.html', | ||
indexview=MyIndexView, | ||
security_manager_class=app.config.get("CUSTOM_SECURITY_MANAGER")) | ||
|
||
sm = appbuilder.sm | ||
|
||
get_session = appbuilder.get_session | ||
from dashed import config, views # noqa |
Oops, something went wrong.