|
@@ -4,9 +4,9 @@
|
|
|
# Copyright © 2018 jianglin
|
|
|
# File Name: maple.py
|
|
|
# Author: jianglin
|
|
|
-# Email: xiyang0807@gmail.com
|
|
|
+# Email: mail@honmaple.com
|
|
|
# Created: 2018-02-11 14:56:08 (CST)
|
|
|
-# Last Update: 星期日 2018-02-11 15:26:53 (CST)
|
|
|
+# Last Update: Monday 2022-12-12 16:38:21 (CST)
|
|
|
# By:
|
|
|
# Description:
|
|
|
# ********************************************************************************
|
|
@@ -17,17 +17,17 @@ from flask_maple.app import App
|
|
|
from flask_maple.json import CustomJSONEncoder
|
|
|
from flask_maple.middleware import Middleware
|
|
|
from flask_maple.log import Logging
|
|
|
+from PIL import ImageFont
|
|
|
|
|
|
-bootstrap = Bootstrap(
|
|
|
- css=('styles/monokai.css', 'styles/mine.css'),
|
|
|
- js=('styles/upload.js', 'styles/forums.js', 'styles/following.js',
|
|
|
- 'styles/topic.js'),
|
|
|
- use_auth=True)
|
|
|
+bootstrap = Bootstrap(css=('styles/monokai.css', 'styles/mine.css'),
|
|
|
+ js=('styles/upload.js', 'styles/forums.js',
|
|
|
+ 'styles/following.js', 'styles/topic.js'),
|
|
|
+ use_auth=True)
|
|
|
|
|
|
|
|
|
def init_app(app):
|
|
|
bootstrap.init_app(app)
|
|
|
- Captcha(app)
|
|
|
+ Captcha(app, font=ImageFont.load_default())
|
|
|
Error(app)
|
|
|
App(app, json=CustomJSONEncoder)
|
|
|
Middleware(app)
|