From 2eee35f7bafda6715d850dbe006bab2fd50e7993 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 22 Jan 2025 14:05:27 +0000 Subject: [PATCH] web: Don't import everything from handlers Signed-off-by: Michael Tremer --- src/web/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/__init__.py b/src/web/__init__.py index e53e21f5..9d6f6492 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -9,6 +9,7 @@ from .. import Backend from ..constants import * # Import all handlers +from . import handlers from . import auth from . import builders from . import builds @@ -24,7 +25,6 @@ from . import search from . import sources from . import uploads from . import users -from .handlers import * class Application(tornado.web.Application): def __init__(self, **kwargs): @@ -48,7 +48,7 @@ class Application(tornado.web.Application): tornado.web.Application.__init__(self, [ # Entry site that lead the user to index - (r"/", IndexHandler), + (r"/", handlers.IndexHandler), # Authentication (r"/login", auth.LoginHandler), -- 2.47.3