To configure GeoDjango (which use GDAL) in Scalingo, you’ll have to follow their documentation here : https://doc.scalingo.com/platform/app/app-with-gdal
Don’t take care of the caution note about python version. You’ll have an error because the collectstatic will be executed in the buildpack which doesn’t have access to newly installed library.
Then, add the environment variable DISABLE_COLLECTSTATIC=1 in your Scalingo project then, if you need to collect your static file, set it up in a the file bin/post-compile in your repository like it :
#!/bin/sh
export PYTHONPATH=/build/${REQUEST_ID}/.apt/usr/lib/python3/dist-packages/:{PYTHONPATH}
export LD_LIBRARY_PATH=/build/${REQUEST_ID}/.apt/usr/lib/x86_64-linux-gnu/blas/:/build/${REQUEST_ID}/.apt/usr/lib/x86_64-linux-gnu/lapack/:${LD_LIBRARY_PATH}
export PROJ_LIB=/build/${REQUEST_ID}/.apt/usr/share/proj
python manage.py collectstatic --noinput
I thanks my colleagues from beta.gouv.fr who write this solution in our intern chat !