android - user registration in django rest framework -
i creating server side android application in drf require user registration , login\logout endpoints. different permissions when user logged in.
i followed rest framework tutorial here - http://www.django-rest-framework.org/tutorial/1-serialization/ , example seeme cover beside user registration (creation).
in tutorial command line (and create superuser). think tutorial example needs besides not having registration endpoint.
my question are:
- what difference between regular user , superuser?
- how should create registration endpoint users? saw example djangorestframework - registering user: difference between userserializer.save() , user.objects.create_user()? not sure if work nicely because in tutorial create superuser.
if matters, user model in userprofile model includes user model , added phone_number...
thanks lot!
a regular user has different authorities superuser , should customize view specific user. here link create user in django.
hope helps.
Comments
Post a Comment