-1

I want to know how do I create users in Django. I can use User.objects.create_user() but I can only store username, email, password, first name, last name. I see that django.contrib.auth.forms is depreciated so I cannot UserCreationForm.

What if I want to store more fields. Can anyone help me with it?

Anshul Gupta
  • 265
  • 2
  • 12

1 Answers1

0

You should make a custom user model and manager. Check this tutorial; it will explain all that you need.

tripleee
  • 175,061
  • 34
  • 275
  • 318
Hashem
  • 595
  • 1
  • 3
  • 8