ildus/wsgid — comment on commit c05e9e19b7a85f491c7333cfa3d4fd86dcbacd9d
File:  line 0
By daltonmatos:

You don't need to change your django app, I think it's done right. The point is that when you map `/some-path` in your front-end server and plug your back-end into it, this part of the path is not known by your app. You can have the same app under `/one-path` or `/other-path` or any other prefix, as this part of the url is not actually part of the app's URLs, it's just the _prefix_ where the app may be plugged.

I think if you need to access your app just with `/api/user/..` you need _plug it_ into the server root. In this case the _prefix_ would be `/` and the remaining (`api/user/...`) would match your django regex: `r'^api/'`.

How is your nginx config?