I've deployed my Django (DRF API) project on DigitalOcean apps. The path "/" is used by my static site that uses this API so I set route for this component to "/api" which works correctly.
The problem:
I go to /api/admin/
and it redirects me to /admin/login
but the django
is served on /api
url so this URL is invalid.
Do you know how to make this work?
Is there a way to tell django
to use absolute URL everywhere?