Reorganization.

This commit is contained in:
Alexis Lahouze 2015-06-05 23:34:04 +02:00
parent 5f67b1ffbd
commit 98843516f7
32 changed files with 7 additions and 6 deletions

View File

@ -15,14 +15,14 @@
along with Accountant. If not, see <http://www.gnu.org/licenses/>. along with Accountant. If not, see <http://www.gnu.org/licenses/>.
""" """
from api import api from .api import api
#from api.controller import login_manager #from api.controller import login_manager
from api.model import db from .api.model import db
from flask import Flask from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.sqlalchemy import SQLAlchemy
from frontend import frontend from .frontend import frontend
from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import sessionmaker
import config from . import config
# The app # The app
app = Flask(__name__, static_folder = None) app = Flask(__name__, static_folder = None)

View File

@ -1,7 +1,8 @@
#!/usr/bin/env python
from flask.ext.script import Manager from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.migrate import MigrateCommand
from app import app from accountant import app
manager = Manager(app) manager = Manager(app)
manager.add_command('db', MigrateCommand) manager.add_command('db', MigrateCommand)