Hey there! For handling the httpx url in settings python, I’d say avoid hardcoding at all costs. Environment variables are the way to go.
If you’re worried about managing multiple environments, you can use a library like `environ-config` or even just stick with `os.getenv`.
Here’s a simple setup:
```python
import os
HTTPX_URL = os.getenv('HTTPX_URL', 'http://default.url')
```
This gives you a fallback in case the env var isn’t set. Super useful for local dev!
If you’re worried about managing multiple environments, you can use a library like `environ-config` or even just stick with `os.getenv`.
Here’s a simple setup:
```python
import os
HTTPX_URL = os.getenv('HTTPX_URL', 'http://default.url')
```
This gives you a fallback in case the env var isn’t set. Super useful for local dev!
