Beispiel #1
0
# -*- coding: utf-8 -*-

"""Тестовый сайт"""

import os

print('----------------------------------------------------------------------')

from flaskcms import create_app
from example.config import ExampleCfg

path = os.path.abspath('.')
path = os.path.join(path,'example')
# print('File:', __file__)
# print('Path:', path)

app = create_app(path, ExampleCfg)

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8080)
    print('--- RUNING ---')

Beispiel #2
0
#!/usr/bin/env python

"""
    flascms.manage


"""

from flaskcms import create_app
from flask_script import Manager
from flask_migrate import MigrateCommand
from flaskcms.config import DevelopConfig


app = create_app(DevelopConfig)
manager = Manager(app)

manager.add_command('db', MigrateCommand)

if __name__ == "__main__":
    manager.run()