As mentioned in http://www.django-rest-framework.org/tutorial/2-requests-
and-responses/ , in order to receive a response from the api server in the
desired format, a '''.json''' or '''.api''' might be appended with the
url. This does not seem to work when the '''urlpattern[]''' has its urls
mentioned in the new '''path()''' function.
When I switched back to using '''url()''' in '''urlpatterns[]''', the
issue was resolved.
--
Ticket URL: <https://code.djangoproject.com/ticket/28924>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
Ticket URL: <https://code.djangoproject.com/ticket/28924#comment:1>
* status: new => closed
* resolution: => invalid
Comment:
Given no reason was provided about what Django's `path` is doing wrong I
believe this something that should be fixed on the DRF side.
Please re-open if you can provide more details about what Django is doing
wrong as simply reporting that a third party feature is not working as
documented when used with a newly introduced Django feature strongly
indicates that the third party, DRF in this case, simply didn't add proper
support for `path` yet.
--
Ticket URL: <https://code.djangoproject.com/ticket/28924#comment:2>