My DRF app is currently being served at https://myapp.com/api/ with the 
nginx config below:

location /api/ {

    rewrite /api(.*) $1 break;
    client_max_body_size 20M;
    client_body_timeout 300s;
    uwsgi_read_timeout 300s;
    uwsgi_send_timeout 300s;
    uwsgi_pass  django-myapp;
    include /etc/nginx/conf.d/uwsgi_params.conf;
}


The browsable API loads up, but when trying to log in renders a 404 page. 
The URL is "https://myapp.com/api-auth/login/"; instead of 
"https://myapp.com/api/api-auth/login/"; . Is there any way to get around 
this and change the API root URL ?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to