I was recently building a website for one of my clients by using the Django rest + React framework ( which is beautiful by the way ) and encounte...
For further actions, you may consider blocking this person and/or reporting abuse
it is patially working. It didn't pass any values of new feilds. check this plzzz
stackoverflow.com/questions/615595...
1) I have an existing user table called user_master. It has more than 10000 existing records which was moved from the legacy system. Instead of using django's defult user table, can I use this table?
2)Second question is can I avoid using django model for managing users. means I will insert the users directly by calling Postgresql function. I want the django login check using the same user_master table.
Thanks for this nice tutorial! Can you provide some info on how to update fields on the registration serializer (CustomRegisterSerializer) so it won't display the inherited fields from the parent class in the browsable API.
great post Tarush! would you make a post explaining how to do the same but with having the user profile as a separate model?
It is currently a separate model
I'm sorry but I just see one model here:
class User(AbstractBaseUser)
Hi Tarush,
Hi! There are multiple ways to do so, In the scenario for this post I had deployed my django app as a REST API and then made POST/GET Requests from my react app to django, It's makes communications very simple and straight forward.
Have you used nginx to integrate fronend and backend
I think you're a little confused, nginx is a web server which mostly helps us while we're hosting it somewhere. To "integrate" frontend and backend you just need to make POST/GO requests from the frontend to the backend
hi Tarush i need your help with one of my Drf react project i just wanted to tweak a few things but i am not able to do that because i am a newbie to Django rest framework
Hey! Drop me a mail
Thanks for the explanation.
can you tell me how can I add an image filed in it.
I need to upload user's profile picture
Just check out the Django documentation, they have a great example and explanation.
docs.djangoproject.com/en/2.2/
You should make it clear, that you will use which library for a faster reading =)
Not bad post anyway!
Hi Tarush,
Would you kindly assist in creating a login Serializer ,model and View for users to login with token authentication? But Custom based Models. I'm a bit stuck somewhere
Great Article. Thanks for sharing.
Instead of username being email address what if you wanted to use phone number ?
What other changes would one need to make ? Thanks