Debug Server Error on server

I have a server running with nginx that is serving on / path the paths for the Vue frontend. The backend is on Uwsgi-Django and is served on /api.

On my localhost, as I do not have any url restrictions, I do not get any errors when executing Dash applications. However, whenever I run it on the server, I get internal server errors. I have tried the following:
url('api/django_plotly_dash/', include('django_plotly_dash.urls'))

An on the Dash application:

DjangoDash('Example', url_base_pathname='api/)

My question is:

Is there any way to debug this error on a server in order to get the full traces telling what is failing when Dash returns an internal server error?