django - POST request url does not match -


first of all, works fine on local server, on server every time when send post request server, 405 response says method not allowed, after investigation turned out first time when send post request server, url not match(301). and, django try send request, 405 response(method not allowed) correct because view not accept request.

main urls

url(r'^api/v1/account/', include('account.api.urls', namespace="apiaccount")), 

account urls

    url(r'^signup/$', views.apisignup, name="apisignup"), 

and send request post method using postman to:

http://hostname.com/api/v1/account/signup/ 

i tried netbeans , android studio results same before.

again, okay on local , key on server till our last deploy didn't change related our api.

update

i changed view , added method it, time request reached inside of view , had internal server error due view needed information inside of post request body


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -