Update config.py
Browse files
config.py
CHANGED
@@ -1,29 +1,29 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
|
3 |
-
import os
|
4 |
-
import pkg_resources
|
5 |
-
|
6 |
-
from flask import Flask
|
7 |
-
|
8 |
-
|
9 |
-
def pkg_version(name_pkg: str) -> str:
|
10 |
-
return pkg_resources.get_distribution(name_pkg).version
|
11 |
-
|
12 |
-
|
13 |
-
BASE = os.path.dirname(os.path.abspath(__file__))
|
14 |
-
TEMPLATES = os.path.join(BASE, 'templates')
|
15 |
-
STATIC = os.path.join(BASE, 'static')
|
16 |
-
|
17 |
-
app = Flask(__name__, template_folder=TEMPLATES, static_folder=STATIC)
|
18 |
-
|
19 |
-
app.config['SECRET_KEY'] = '5F3EAXjUf?%,)h#R92y9aq5'
|
20 |
-
app.config['JSON_SORT_KEYS'] = False
|
21 |
-
|
22 |
-
app.config["KAMI_OPT_VERB"] = False
|
23 |
-
app.config["KAMI_OPT_TRUNC"] = True
|
24 |
-
app.config["KAMI_OPT_PERC"] = True
|
25 |
-
app.config["KAMI_OPT_ROUND"] = '0.001'
|
26 |
-
app.config['KAMI_VERSION'] = pkg_version("kamilib
|
27 |
-
|
28 |
-
from modules.views import index, cant_find_page, server_unavailable
|
29 |
-
|
|
|
1 |
+
# -*- coding: utf-8 -*-
|
2 |
+
|
3 |
+
import os
|
4 |
+
import pkg_resources
|
5 |
+
|
6 |
+
from flask import Flask
|
7 |
+
|
8 |
+
|
9 |
+
def pkg_version(name_pkg: str) -> str:
|
10 |
+
return pkg_resources.get_distribution(name_pkg).version
|
11 |
+
|
12 |
+
|
13 |
+
BASE = os.path.dirname(os.path.abspath(__file__))
|
14 |
+
TEMPLATES = os.path.join(BASE, 'templates')
|
15 |
+
STATIC = os.path.join(BASE, 'static')
|
16 |
+
|
17 |
+
app = Flask(__name__, template_folder=TEMPLATES, static_folder=STATIC)
|
18 |
+
|
19 |
+
app.config['SECRET_KEY'] = '5F3EAXjUf?%,)h#R92y9aq5'
|
20 |
+
app.config['JSON_SORT_KEYS'] = False
|
21 |
+
|
22 |
+
app.config["KAMI_OPT_VERB"] = False
|
23 |
+
app.config["KAMI_OPT_TRUNC"] = True
|
24 |
+
app.config["KAMI_OPT_PERC"] = True
|
25 |
+
app.config["KAMI_OPT_ROUND"] = '0.001'
|
26 |
+
app.config['KAMI_VERSION'] = pkg_version("kamilib")
|
27 |
+
|
28 |
+
from modules.views import index, cant_find_page, server_unavailable
|
29 |
+
|