Performance: Why settings configuration matters
MEDIUM IMPACT
Settings configuration impacts server response time and resource usage, affecting page load speed and user experience.
DEBUG = False ALLOWED_HOSTS = ['yourdomain.com']
DEBUG = True
ALLOWED_HOSTS = []| Pattern | Server Processing | Network Transfer | Caching | Verdict |
|---|---|---|---|---|
| DEBUG=True | High CPU and memory use | Larger payloads | Disabled | [X] Bad |
| DEBUG=False | Optimized CPU use | Smaller payloads | Enabled | [OK] Good |
| StaticFilesStorage | Normal | No fingerprinting | Limited | [!] OK |
| ManifestStaticFilesStorage | Normal | Fingerprinted assets | Enabled | [OK] Good |