@Postbox , Apologies for the delay in responding here.
Oryx runs manage.py
collectstatic on your behalf unless you specify the DISABLE_COLLECTSTATIC
env var. Make sure you've set STATIC_ROOT in settings.py
:
// settings.py
STATIC_ROOT = './static/'
Or having STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
To host static files in your web app, add the whitenoise package to requirements.txt and the configuration for it to settings.py.
Note: It will depend on the Django version, always try the latest version.
# requirements.txt
whitenoise==4.1.2
You can find a Django working sample with static files for Web Apps On Linux here.
Kindly check this doc for the recommended configuration -https://github.com/microsoft/Oryx/wiki/Django-Tips
Please let us know how it goes and I'll follow-up further.