I have a basic django app with django rest framework. I have deployed it to Azure Web App and it working fine except the I am not able to serve the static files. I have the following in setting.py
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
STATIC_ROOT = "/home/site/wwwroot/static/" # Azure path
STATIC_URL = '/static/'
The application is looking for www.domain.com/static/"
. I did ran python manage.py collectstatic
file on azure and it does create a directory will all the file at the above location.
Not sure what's wrong, may be something to do with how azure containiser the application. Any help would be much appreciated