Reorganization.
This commit is contained in:
parent
5f67b1ffbd
commit
98843516f7
@ -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)
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user