2015-03-31 20:15:22 +02:00
|
|
|
from views import *
|
|
|
|
|
2015-04-02 12:56:15 +02:00
|
|
|
from app import app, db
|
2015-03-31 20:15:22 +02:00
|
|
|
|
|
|
|
from admin import admin
|
|
|
|
from login import login_manager
|
|
|
|
from models import *
|
|
|
|
from forms import *
|
|
|
|
from utils import *
|
|
|
|
from views import *
|
2015-06-04 17:29:37 +02:00
|
|
|
from flask.ext.migrate import Migrate, MigrateCommand
|
|
|
|
from flask.ext.script import Manager
|
2015-03-31 20:15:22 +02:00
|
|
|
|
2015-04-02 12:59:55 +02:00
|
|
|
if __name__ == '__main__':
|
2015-06-04 17:29:37 +02:00
|
|
|
# do it here, because make accessing db changes only possible when executing the program directly
|
|
|
|
migrate = Migrate(app, db)
|
|
|
|
manager = Manager(app)
|
|
|
|
manager.add_command('db', MigrateCommand)
|
|
|
|
manager.run()
|