GitHub user dosubot[bot] added a comment to the discussion: Superset login page path
<!-- Answer --> The login page template is located at: **`<venv_path>/lib/python<version>/site-packages/superset/templates/superset/spa.html`** However, note that Superset uses a [Single Page Application (SPA) architecture](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/templates/superset/spa.html), so there isn't a dedicated login HTML file. The `spa.html` is a minimal shell template that loads React-based JavaScript bundles. The actual login form UI is rendered client-side by JavaScript, not server-side HTML. The [login route is handled by `SupersetAuthView` in `superset/views/auth.py`](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/views/auth.py#L34-L43), which renders the same `spa.html` template used by all SPA routes. If you're looking to customize the login page appearance, you'd likely need to modify the React frontend components rather than an HTML template. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/ed4f0cfe-45d4-4ead-badf-d76c7bd0c97c?feedback_type=great_response&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/ed4f0cfe-45d4-4ead-badf-d76c7bd0c97c?feedback_type=irrelevant_answer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/ed4f0cfe-45d4-4ead-badf-d76c7bd0c97c?feedback_type=incorrect_sources&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/ed4f0cfe-45d4-4ead-badf-d76c7bd0c97c?feedback_type=too_verbose&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ed4f0cfe-45d4-4e ad-badf-d76c7bd0c97c?feedback_type=hallucination&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/ed4f0cfe-45d4-4ead-badf-d76c7bd0c97c?feedback_type=bug_report&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report) | [Other](https://app.dosu.dev/response-feedback/ed4f0cfe-45d4-4ead-badf-d76c7bd0c97c?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge) [](https://cursor.com/link/prompt?text=The%20login%20page%20template%20is%20located%20at%3A%0A%0A%2A%2A%60%3Cvenv_path%3E/lib/python%3Cversion%3E/site-packages/superset/templates/superset/spa.html%60%2A%2A%0A%0AHowever%2C%20note%20that%20Superset%20uses%20a%20%5BSingle%20Page%20Application%20%28SPA%29%20architecture%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/templates/superset/spa.html%29%2C%20so%20there%20isn%27t%20a%20dedicated%20login%20HTML%20file.%20The%20%60spa.html%60%20is%20a%20minimal%20shell%20template%20that%20loads%20React-based%20JavaScript%20bundles.%20The%20actual%20login%20form%20UI%20is%20rendered%20client-side%20by%20JavaScript%2C%20not%20serve r-side%20HTML.%0A%0AThe%20%5Blogin%20route%20is%20handled%20by%20%60SupersetAuthView%60%20in%20%60superset/views/auth.py%60%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/views/auth.py%23L34-L43%29%2C%20which%20renders%20the%20same%20%60spa.html%60%20template%20used%20by%20all%20SPA%20routes.%0A%0AIf%20you%27re%20looking%20to%20customize%20the%20login%20page%20appearance%2C%20you%27d%20likely%20need%20to%20modify%20the%20React%20frontend%20components%20rather%20than%20an%20HTML%20template.) [](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/38538) GitHub link: https://github.com/apache/superset/discussions/38538#discussioncomment-16063620 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
