mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update config.py
This commit is contained in:
@@ -24,11 +24,14 @@ class config:
|
||||
|
||||
def makeApp(self, name):
|
||||
app = Flask(name)
|
||||
app.debug = True
|
||||
|
||||
app.config.version = self.__version + str(time.time())
|
||||
app.config.version = self.__version
|
||||
app.config['SECRET_KEY'] = os.urandom(24)
|
||||
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=7)
|
||||
|
||||
# app.debug = True
|
||||
# app.config.version = self.__version + str(time.time())
|
||||
|
||||
__app = app
|
||||
|
||||
self.initDB()
|
||||
|
||||
Reference in New Issue
Block a user