We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c33ae90 + a9d3c2b commit 246ca98Copy full SHA for 246ca98
src/WebAppDIRAC/Core/App.py
@@ -96,12 +96,14 @@ def bootstrap(self):
96
SessionData.setHandlers(self.__handlerMgr.getHandlers()["Value"])
97
# Create the app
98
tLoader = TemplateLoader(self.__handlerMgr.getPaths("template"))
99
+ debug = Conf.devMode()
100
+ autoreload = (Conf.numProcesses() < 2) and debug
101
kw = dict(
- debug=Conf.devMode(),
102
+ debug=debug,
103
template_loader=tLoader,
104
cookie_secret=str(Conf.cookieSecret()),
105
log_function=self._logRequest,
- autoreload=Conf.numProcesses() < 2,
106
+ autoreload=autoreload,
107
)
108
109
# please do no move this lines. The lines must be before the fork_processes
0 commit comments