# 模板语法错误：无法从 'user.get_full_name()' 解析剩余部分：'()'

- **ID:** `python/django-template-variable-does-not-exist`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

模板中不允许带括号调用方法；应使用不带括号的方法名。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   Use {{ user.get_full_name }} without parentheses.
   ```
2. **** (85% 成功率)
   ```
   Create a custom template filter: {{ user|full_name }}
   ```

## 无效尝试

- **** — Adding parentheses in template is invalid syntax; Django templates don't support function calls. (90% 失败率)
- **** — Using eval or exec in template is unsafe and not supported. (80% 失败率)
