Django Custom User model and making auth api

82 views
Skip to first unread message

Saad Mrabet

unread,
Apr 2, 2021, 9:18:53 AM4/2/21
to Django users
Hello every i m currently working on a project where had to overwrite the  AbstractBaseUser and i did follow some tutorial :

But now I need to make a good login API, so later I can log in with my React app,  and i m kinda lost any recommendation about any tutorial  ? 

Ryan Nowakowski

unread,
Apr 2, 2021, 6:50:55 PM4/2/21
to django...@googlegroups.com
I don't have a ton of experience with it but when a question includes the term "create an API", the answer usually includes "just use Django Rest Framework".

Ayser shuhaib

unread,
Apr 2, 2021, 7:26:17 PM4/2/21
to django...@googlegroups.com
Please see this tutorial as it explained how to create a custom user model and uses django-rest-auth for the (login, logout, signup ...etc)


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/D3963616-DA14-4ED7-82D6-9CF7128F6660%40fattuba.com.

Saad Mrabet

unread,
Apr 3, 2021, 3:38:02 AM4/3/21
to Django users
Hello, hope you're doing well,
I did a similar work and I find out that  django-rest-auth  is lo longer supported and don't receive any new update, do you have any ideas about which is the best third party for auth ?  https://www.django-rest-framework.org/api-guide/authentication/

Saad Mrabet

unread,
Apr 3, 2021, 3:38:55 AM4/3/21
to Django users
Yes it is in fact the bast option possible, thank you  !

Ayser shuhaib

unread,
Apr 3, 2021, 4:43:21 AM4/3/21
to django...@googlegroups.com
django-rest-auth is still supported, it's not currently receiving updates, but you can still use it and it has no issues so far.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Ajay Rathore

unread,
Apr 3, 2021, 5:45:45 AM4/3/21
to django...@googlegroups.com
Hey,

Another alternative is to use graph ql. https://github.com/graphql-python/graphene-django
Regards
Ajay Rathore
Python Developer


Reply all
Reply to author
Forward
0 new messages