GitHub user dosubot[bot] added a comment to the discussion: Attribute not found error in superset_config.py
<!-- Answer --> If your redirect isn't working, it's almost always because Superset isn't loading your config or isn't calling your mutate_app function. Here’s how to troubleshoot: 1. Make sure your config file is in the correct location. For Docker Compose, it must be at `/app/docker/pythonpath_dev/superset_config_docker.py` inside the container (host: `./docker/pythonpath_dev/superset_config_docker.py`). If you’re using another method, confirm the config is on the Python path or set via `SUPERSET_CONFIG_PATH` [details](https://github.com/apache/superset/issues/34441). 2. Add `raise Exception("test")` at the very top of your config file, restart Superset, and check the logs. If you don’t see this error, your config isn’t being loaded. 3. Add a print or log statement inside your `mutate_app` function to confirm it runs at startup. 4. Double-check that you have `FLASK_APP_MUTATOR = mutate_app` at the bottom of your config, not just the function definition. 5. Make sure you’re visiting the root URL (`/`). The redirect only triggers there. 6. Check your logs for any import or syntax errors—any error will prevent your customizations from loading [reference](https://github.com/apache/superset/issues/34441). If all of these checks pass and you still don’t see the redirect, let me know what you find in the logs and how your config is set up. <!-- 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/31e3804d-1e0f-4cf0-b9da-18eda13b2971?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/31e3804d-1e0f-4cf0-b9da-18eda13b2971?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/31e3804d-1e0f-4cf0-b9da-18eda13b2971?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/31e3804d-1e0f-4cf0-b9da-18eda13b2971?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/31e3804d-1e0f-4cf0-b9da-18eda13b2971?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/31e3804d-1e0f-4cf0-b9da-18eda13b2971?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/31e3804d-1e0f-4cf0-b9da-18eda13b2971?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/34530) GitHub link: https://github.com/apache/superset/discussions/34530#discussioncomment-14004451 ---- 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]
