Reduce Memory Load
Reduce Memory Load
```python
# settings.py
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_STORAGE =
'django.contrib.staticfiles.storage.CompressedManifestStaticFilesStorag
e'
```
Adjust `STATIC_URL` to match the URL path where your static files will
be served, and `STATIC_ROOT` to specify the directory where collected static
files will be stored.
```bash
python manage.py collectstatic
```
This command will gather all static files from your Django apps and store
them in the `STATIC_ROOT` directory.
`CompressedManifestStaticFilesStorage` will compress and version these
files during the collection process.