S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How do you import the User model in Django?

  • (A) from django.models import User
  • (B) from django.contrib.auth.models import User
  • (C) from django.auth import User
  • (D) from django.contrib.models import User
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Django
  • Hashtags:

Explanation by: Shyam Dubey
The User model is imported from django.contrib.auth.models.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.