File size: 828 Bytes
1f8085b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from flask import Flask

def Flask_Instance():
    app = Flask(__name__, static_folder='static', template_folder='templates')
    app.config['SECRET_KEY'] = 'SECRET_KEY'

    from FlaskWebApp.App import app_handler
    app.register_blueprint(app_handler, url_prefix='/')

    from FlaskWebApp.APIServices import pwa_api
    app.register_blueprint(pwa_api, url_prefix='/api/')

    from FlaskWebApp.Authentication import authentication
    app.register_blueprint(authentication, url_prefix='/auth/')

    from FlaskWebApp.FileHandler import handler
    app.register_blueprint(handler, url_prefix='/app/')

    return app


#This is for UWSGI Server Cofiguration
#application=app
app = Flask_Instance()

if __name__ == '__main__':
    app.config['SECRET_KEY'] = 'I am the  scret'
    app.run(host='0.0.0.0', port=8000, debug=True)