Which is the correct statement to import models in the Django project?

14. Which is the correct statement to import models in the Django project?

  1. from django import models
  2. from django.models import models
  3. from django.db import models
  4. None of the above

Answer: C) from django.db import models

Explanation:

The correct statement to import models in the Django project is:

from django.db import models

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.