From: Michael Tremer Date: Wed, 22 Jan 2025 14:05:27 +0000 (+0000) Subject: web: Don't import everything from handlers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eee35f7bafda6715d850dbe006bab2fd50e7993;p=pbs.git web: Don't import everything from handlers Signed-off-by: Michael Tremer --- 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),