1. Django is written in which programming language?
2. What type of framework is Django?
3. Which architectural pattern does Django follow?
4. In Django, what does the “T” in MVT stand for?
5. Which command is used to create a new Django project?
6. Which command creates a new app inside a Django project?
7. Default database used in Django (if not changed)?
8. Where do you register Django apps?
9. Which file contains project-level URL configurations?
10. Which command runs the development server?
11. Which file is used to define Django models?
12. Which command applies model changes to the database?
13. Which command generates migration files from models?
14. Django ORM stands for:
15. Which of these is not a Django field type?
16. Which method is used to save a model object to the database?
17. Which method deletes a model object?
18. What is the default primary key field in Django models?
19. Which query returns all objects of a model?
20. Which filter returns specific objects based on conditions?
21. Where are Django views defined?
22. Which function is used to render HTML templates?
23. Which template engine is used by default in Django?
24. In templates, which symbols are used for variables?
25. Which symbols are used for template tags (logic)?
26. Which function returns an HTTP 404 error?
27. Which class is used for function-based views shortcut in Django?
28. Which decorator is used for login-required views?
29. Which function is used to redirect users?
30. Which class handles JSON response in Django?
31. Where are Django forms defined?
32. Which class is used to create forms directly from models?
33. Which command creates a superuser?
34. Which file is used to customize Django admin panel?
35. Which method is used to add a model in admin panel?
36. Django forms are used for:
37. Which validation method checks field-specific errors in forms?
38. Which validation method checks form-wide errors?
39. Which built-in form widget is used for passwords?
40. Which attribute in forms is used to make a field optional?
41. What is Django middleware used for?
42. Which middleware handles sessions in Django?
43. Which middleware prevents Cross-Site Request Forgery?
44. Where are middleware classes listed?
45. Which security feature auto-escapes HTML in templates?
46. Which command collects static files into one folder?
47. Where are static files defined in Django?
48. Where are user-uploaded files usually stored?
49. Which server is recommended for deploying Django in production?
50. Which setting must be False in production for security?