How to test registration on django rest framework -


i'm new django rest framework.
i'm following tutorial make registration/login , using facebook authentication.
finish tutorial looks fine. try register user , try facebook. don't know how try. know it's noob question.
i've made user using django createsuperuser command. can login using http://localhost:8000/rest-auth/login/ url , return me key. i'm logged in , can access admin example.
there http://localhost:8000/rest-auth/registration/ url registration there no form.
there http://localhost:8000/rest-auth/facebook/ ask me access token.

so know it's sound basic didn't find how register

you need use curl interact api. this

$ curl -x post -d 'username=admin&password=1234' http://localhost:8000/register/

or go through link might you.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -