Does:
``` python
URL = app.config.get('DATAGREPPER_BASE_URL', request.url_root)
```
work?  Unless it doesn't fit in stylistically with the rest of the code, I like that form better.