-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
36 lines (25 loc) · 828 Bytes
/
app.py
File metadata and controls
36 lines (25 loc) · 828 Bytes
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
29
30
31
32
33
34
35
36
"""
Main entry point of Banzee API application
Usages:
python app.py
"""
#import os
#from flask import Flask
#from flask_sqlalchemy import SQLAlchemy
#from server.config import Config
from server import app
"""
from server.api.v1.system_resource import system_resource
from server.api.v1.partner_resource import partner_resource
app = Flask(__name__, static_folder=os.path.join('server', 'static'))
app.url_map.strict_slashes = False
app.config['SQLALCHEMY_DATABASE_URI'] = "mysql://banzee:banzee!$@localhost/db_microtransaction"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['SQLALCHEMY_ECHO'] = False
app.register_blueprint(system_resource)
app.register_blueprint(partner_resource)
"""
#db = SQLAlchemy(app)
if __name__ == '__main__':
#app.run(debug=Config.DEBUG)
app.run(debug=True)