Bird
0
0

Which file does Gunicorn use by default to find the Django application callable?

easy📝 Conceptual Q2 of 15
Django - Deployment and Production
Which file does Gunicorn use by default to find the Django application callable?
Amanage.py
Bwsgi.py
Csettings.py
Durls.py
Step-by-Step Solution
Solution:
  1. Step 1: Identify the WSGI entry point in Django

    Django projects include a wsgi.py file that exposes the application callable for WSGI servers.
  2. Step 2: Confirm other files' roles

    manage.py runs commands, settings.py holds configs, urls.py routes URLs, none expose WSGI callable.
  3. Final Answer:

    wsgi.py -> Option B
  4. Quick Check:

    WSGI callable location = wsgi.py [OK]
Quick Trick: Gunicorn looks for wsgi.py to start Django app [OK]
Common Mistakes:
MISTAKES
  • Choosing manage.py as the WSGI entry
  • Confusing settings.py with app callable
  • Thinking urls.py is used by Gunicorn

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes