# AttributeError: 'Flask' object has no attribute 'method'

- **ID:** `python/flask-attributeerror-flask-object-has-no-attribute-method`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Trying to call a method that does not exist on the Flask app object, often due to typo or wrong object.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **Check Flask documentation for correct method** (90% success)
   ```
   Use app.route() instead of app.get() for defining routes.
   ```
2. **Use dir() to list available attributes** (85% success)
   ```
   print(dir(app))
   ```

## Dead Ends

- **Assuming Flask has all common methods** — Flask has specific methods; not all are available. (50% fail)
- **Confusing Flask with other frameworks** — Methods like 'get' or 'post' are not Flask methods. (80% fail)
