-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
46 lines (32 loc) · 1.2 KB
/
app.py
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
37
38
39
40
41
42
43
44
45
46
## app.py
# -*- coding: utf-8 -*-
import os
from eduka import create_app
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
######################################
## ##
## import the blueprints here! ##
## ##
######################################
from eduka.users.views import users_blueprint
from eduka.posts.views import posts_blueprint
from eduka.core.views import core_blueprint
## utils
from eduka.utils.app_filters import filter_blueprint
## error pages blueprints
from eduka.error_pages.handlers import error_pages_blueprint
######################################
## ##
## Register blueprints here! ##
## ##
######################################
app.register_blueprint(users_blueprint)
app.register_blueprint(posts_blueprint)
app.register_blueprint(core_blueprint)
app.register_blueprint(filter_blueprint)
app.register_blueprint(error_pages_blueprint)
if __name__ == '__main__':
app.run(host= '0.0.0.0', port=5000, debug=True)
# to run app so on ip 192.168.1.29:5000
## using the computer ip address instead of
## 127.0.0.1:5000 the localhost