GitHub user dosubot[bot] added a comment to the discussion: Is there an inbuilt
class in Superset called SuperstDashboardIndexView
<!-- Answer -->
There is no inbuilt class called SupersetDashboardIndexView in Superset 5. The
error happens because Superset 5 no longer supports customizing the landing
page using the FAB_INDEX_VIEW config—this setting is now ignored, even if you
define the class in your config file, which leads to the AttributeError you’re
seeing.
To customize the landing page in Superset 5, you need to define your custom
IndexView class and then use a mutate_app function assigned to
FLASK_APP_MUTATOR in your config. Here’s the supported pattern:
```python
from flask_appbuilder import expose, IndexView
from superset.typing import FlaskResponse
class SupersetDashboardIndexView(IndexView):
@expose('/')
def index(self) -> FlaskResponse:
# your custom logic here
return redirect('/dashboard/list/')
def mutate_app(app):
from superset.extensions import appbuilder
appbuilder.indexview = SupersetDashboardIndexView
FLASK_APP_MUTATOR = mutate_app
```
Make sure to remove any FAB_INDEX_VIEW setting from your config. If you’re
using Docker, your config file should be at
`/app/docker/pythonpath_dev/superset_config_docker.py` and you’ll need to
restart your containers for changes to take effect. If your custom landing page
still doesn’t work, check for config file loading issues, syntax errors, or
incorrect file placement. More details and troubleshooting steps are available
in these threads:
[discussion](https://github.com/apache/superset/discussions/34530),
[issue](https://github.com/apache/superset/issues/34441),
[issue](https://github.com/apache/superset/issues/34575).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/c75f8944-a628-4e1f-b948-fd9024e121b3?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/c75f8944-a628-4e1f-b948-fd9024e121b3?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/c75f8944-a628-4e1f-b948-fd9024e121b3?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/c75f8944-a628-4e1f-b948-fd9024e121b3?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/c75f8944-a628-4e1f-b948-fd9024e121b3?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/c75f8944-a628-4e1f-b948-fd9024e121b3?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/c75f8944-a628-4e1f-b948-fd9024e121b3?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34594)
GitHub link:
https://github.com/apache/superset/discussions/34594#discussioncomment-14033598
----
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]