This commit is contained in:
Mr Chen
2018-12-21 11:44:38 +08:00
parent 17e6703c07
commit b7da91f92b
9 changed files with 43 additions and 52 deletions
+3 -2
View File
@@ -46,12 +46,13 @@ class config:
self.initDB()
self.initInitD()
self.initRoute()
self.startDebug()
app.wsgi_app = MiddleWare(app.wsgi_app)
return app
def startDebug(self):
app.debug = True
app.config.version = self.__version + str(time.time())
self.__app.debug = True
self.__app.config.version = self.__version + str(time.time())
def initDB(self):
try: