I think this should be:
```python
domain = getattr(settings, 'SUBDOMAINS_DOMAIN', current_domain())
```