S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the purpose of __init__.py in a Django app?

  • (A) Initializes the model
  • (B) Defines the views
  • (C) Marks a directory as a Python package
  • (D) Initializes the database
  • Correct Answer - Option(C)
  • Views: 15
  • Filed under category Django
  • Hashtags:

Explanation by: Shyam Dubey
__init__.py makes the directory a Python package.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.