D
D
dim_nikita2018-03-23 21:07:49
Django
dim_nikita, 2018-03-23 21:07:49

How to change fields in Django registration?

For registration, I use
from django.contrib.auth.models import User
But how can I make it so that in addition to the standard fields I can add my own? For example, for the user to enter his city, phone number, etc. at the entrance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2018-03-23
@dimonchik2013

https://habrahabr.ru/post/313764/

B
Bjornie, 2018-03-24
@Bjornie

AbstractBaseUser inherit from it and write your own model. It must be specified in settings.py afterwards. Everything works perfectly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question