I am building an API with Django REST framework which is served via Gunicorn and Nginx. The project \"exampleproject\" has to run at a subpath such as: https://100.100.100.1
I found here that one needs to add the following setting to Django's configuration in settings.py:
settings.py
FORCE_SCRIPT_NAME = '/exampleproject'
This seems to rewrite all paths for nested resources.