GitHub user paulsonkevgit created a discussion: Is there an inbuilt class in 
Superset called SuperstDashboardIndexView

When i am using following code for changing the landing page in apache superset 
version 5 ERROR thorwn as  SuperstDashboardIndexView not found in the 
superset_config module 


class SupersetDashboardIndexView(IndexView):
     @expose("/")
     def index(self) -> FlaskResponse:
         if not g.user or not get_user_id():
             # Do steps for anonymous user e.g.
             return redirect("/login")
         # Do steps for authenticated user e.g.
         return redirect(WELCOME_PAGE_REDIRECT_DEFAULT)

FAB_INDEX_VIEW = "superset_config.SupersetDashboardIndexView"
OR 
FAB_INDEX_VIEW = 
f"{SupersetDashboardIndexView.__module__}.{SupersetDashboardIndexView.__name__}"

ERROR:::
2025-08-02 05:28:39,794:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:39,794:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,794:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:39,795:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,796:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:39,797:INFO:superset.initialization:Setting database isolation 
level to READ COMMITTED
2025-08-02 05:28:39,799:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView'
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 
52, in dynamic_class_import
return reduce(getattr, tmp[1:], package)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView'
2025-08-02 05:28:39,800:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView'
2025-08-02 05:28:40,051:INFO:superset.utils.screenshots:No PIL installation 
found






GitHub link: https://github.com/apache/superset/discussions/34594

----
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]

Reply via email to