Oct. 18, 2023, 4:24 p.m. | Bum-Ho12

DEV Community dev.to

Hi, as a beginner in django_restframework, it is difficult to work with tokens without first creating a BaseUserManager account model and abstract it to be able to access the AuthToken functionality of restframework. I mean this way:




Basically, you can create tokens for your normal model, but it requires a bit of work. I mean if your model is this way:




all you have to do is:


Create a new python file in your app and give it a name. …

abstract beginner django mean normal python token tokens work

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Data Scientist (Database Development)

@ Nasdaq | Bengaluru-Affluence