简体   繁体   中英

How to register users using django-rest-framework and angularJS?

I have a project where am developing a Django single page web app using angularJS and now, All calls between the front and back end should be done via Django-REST.
Am now doing the registration and I cant seem to figure out exactly what should be done
I saw This Post and I was wondering when I fill the sign up form in the front end, how will it be send using rest and save the user. Any help, links on how to go about it will be much appreciated. Thanks

您创建一个服务myService ,它将为您提供$resource(yourEndpointUrlForUsers) ,然后使用myService.save(dataFromForm)保存数据。

Try this django app - https://github.com/sunscrapers/djoser .

And normal http requests from the fronted controllers to the urls in this app will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM