mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -4,12 +4,7 @@ import sys
|
||||
import io
|
||||
import os
|
||||
|
||||
|
||||
sys.path.append("/class/core")
|
||||
reload(sys)
|
||||
sys.setdefaultencoding('utf8')
|
||||
|
||||
import route
|
||||
import config
|
||||
|
||||
app = config.config().makeApp(__name__)
|
||||
|
||||
@@ -6,14 +6,15 @@ import os
|
||||
import time
|
||||
import shutil
|
||||
|
||||
reload(sys)
|
||||
sys.setdefaultencoding('utf8')
|
||||
|
||||
from flask import Flask
|
||||
from datetime import timedelta
|
||||
|
||||
sys.path.append(os.getcwd() + "/class/core")
|
||||
# sys.setdefaultencoding('utf-8')
|
||||
import db
|
||||
import public
|
||||
import route
|
||||
|
||||
|
||||
class MiddleWare:
|
||||
@@ -90,6 +91,7 @@ class config:
|
||||
return self.__app
|
||||
|
||||
def initRoute(self):
|
||||
import route
|
||||
DEFAULT_MODULES = (
|
||||
(route.dashboard, "/"),
|
||||
(route.site, "/site"),
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# coding:utf-8
|
||||
|
||||
import os
|
||||
import time
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user