We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4
1. What is Django?
2. What is the difference between Flask and Django?
3. Name some Companies that use Django. 4. What is the difference between a Project and an App? 5. Explain Django’s architecture. 6. What are the Features of using Django? 7. Explain the Django project directory structure. 8. How do you create a Django project? 9. How do you create a Django app? 10. How do we start our development server? 11. Importance of virtual environment setup for Django. 12. Give a brief about the Django admin interface. 13. What are Django URLs? 14. What are the views of Django? 15. What are the models in Django? 16. What do the following commands do?
17. python manage.py makemigrations
18. python manage.py migrate
19. Define static files and explain their uses.
20. What are the sessions? 21. What are templates in the Django language? 22. What does the settings.py file do? 23. Difference between MVC and MVT design patterns? 24. What is Django ORM? 25. What is Superuser? 26. What is Jinja templating? 27. What do you mean by the csrf_token? 28. Explain the use of Middlewares in Django. 29. What are ‘signals’? 30. What is Media Root? 31. How you can include and inherit files in your application? 32. MEDIA_ROOT: It is for the server path to store files in the computer. MEDIA_URL: It is the referring URL for the browser to access the files over HTTP. 33. How do you connect your Django Project to the database? 34. Explain the caching strategies of Django. ? 35. Give the exception classes present in Django. 36. What is No SQL and Does Django support NoSQL? 37. What are the different model inheritance styles in Django? 38. What databases are supported by Django? 39. How would you query all the items in the database table? 40. How to query one item from the database table? 41. What is Django Rest Frameworkcont 42. Explain the Django Response lifecycle. 43. How do filter items in the Model? 44. What is the difference between CharField and TextField in Django? 45. Give a brief about the settings.py file. 46. What are Django cookies? 47. How to check the version of Django installed on your system? 48. Why is Django called a loosely coupled framework? 49. Explain Django Security. 50. Explain user authentication in Django 51. What is the “Django.shortcuts.render” function? 52. What is a context in Django? 53. What is serialization in Django? 54. What are Django URLs? 55. What are models in Django? 56. Explain the django project directory structure? 57. What are templates in Django or Django template language? 58. What are views in Django?
59. Function-Based Views: In this, we import our view as a function.
60. Class-based Views: It’s an object-oriented approach.
61. What is Django ORM?
62. Define static files and explain their uses?
63. What is Django Rest Framework(DRF)? 64. What is django-admin and manage.py and explain its commands? 65. What is Jinja templating? 66. What’s the use of Middleware in Django? 67. What is context in the Django? 68. What is django.shortcuts.render function? 69. What’s the significance of the settings.py file? 70. How to filter items in the Model? 71. How to view all items in the Model? 72. Explain the caching strategies in the Django? 73. Explain user authentication in Django? 74. How to configure static files? 75. Explain Django Response lifecycle? 76. Why is permanent redirection not a good option? 77. How to use file-based sessions? 78. What is mixin? 79. What is Django Field Class? 80. Difference between Django OneToOneField and ForeignKey Field? 81. How can you combine multiple QuerySets in a View? 82. How to obtain the SQL query from the queryset? 83. What are the ways to customize the functionality of the Django admin interface? 84. Difference between select_related and prefetch_related? 85. Explain Q objects in Django ORM? 86. Explain Q objects in Django ORM? 87. Is Django a high-level web framework or low-level framework? 88. How does Django work? 89. Which foundation manages the Django web framework? 90. Is Django stable? 91. Explain the advantages of Django? 92. What are the disadvantages of Django? 93. What are the inheritance styles in Django? 94. Is Django a content management system (CMS)? 95. What is some typical usage of middlewares in Django? 96. What does of Django field class types do? 97. What are the two important parameters in signals? 98. How to handle URLs in Django? 99. What are the different types of Django Exception Classes? 100. What is the role of Cookie in Django? 101. Why do web developers prefer Django? 102. What is CRUD? 103. What are the different model inheritance styles in Django? 104. Discuss Django’s Request/Response Cycle. 105. How do you install Django? 106. What's the use of a session framework? 107. What do you use middleware for in Django? 108. What does a URLs-config file contain? 109. Does Django support multiple-column primary keys? 110. How can you see raw SQL queries running in Django? 111. List several caching strategies supported by Django. 112. What is a QuerySet in the context of Django? 113. What do you use django.test.Client class for? 114. How to use file-based sessions? 115. How to combine multiple QuerySets in a View? 116. Mention the ways used for the customization of the functionality of the Django admin interface. 117. Describe the purpose of Django's admin interface. 118. What is a database migration in Django and why is it important? 119. Explain the difference between a ForeignKey and a ManyToManyField in Django models. 120. How do you define a custom model field in Django? 121. What is the latest version of Django, and what are its key features? 122. What are the differences between Python and Django? 123. What is Django's code reusability? 124. What inheritance styles does Django support? 125. What are Django cookies? 126. What are the differences between Flask & Django? 127. How do you check the version of Django installed on your system? 128. How do you create a Django project? 129. How does Django view work? 130. When to use iterators in Django ORM? 131. Explain the strategies used to implement Django cachin 132. How does Django process a request? 133. Which Python version should you use with Django? 134. Why is Django called a loosely coupled framework? 135. Why do you use forms in Django? 136. Why is Django a monolithic framework? 137. How can you manage user authentication in Django? 138. Can you explain how to add View functions to the urls.py file? 139. Explain Django Security. 140. What is AJAX in Django? 141. How do you handle AJAX requests in Django? 142. What are Django's generic views? 143. What is the right way to make a variable available to all your templates? 144. How can you use a file-based session in Django? 145. When do you use middleware in Django? 146. Are Django signals asynchronous? 147. What are class-based views in Django? 148. What are function-based views in Django? 149. Why do you use message brokers in Django? 150. How can you optimise the performance of a Django application? 151. What is the Django OAuth toolkit? 152. How can you create custom middleware in Django? 153. What is the purpose of Django’s manage.py script? 154. How do you implement a custom template filter in Django? 155. How can you use Django’s built-in authentication system to create a user? 156. How does Django handle database migrations? 157. What is the purpose of the ALLOWED_HOSTS setting in Django? 158. What is Django’s context_processors? 159. Explain how Django's transaction.atomic works. 160. What is Django’s get_or_create() method? 161. How can you implement custom validation in a Django form? 162. Describe the role of django.contrib.sites framework. 163. What is the role of django.db.models.Q objects in Django queries? 164. How does Django’s cache framework handle cache expiration?
How do you optimize database queries in Django
165. Describe how you would implement RESTful APIs in a Django project
How do you handle migrations in Django
166. Explain how you would use Django signals
What are class-based views in Django, and when would you use them 167. How do you manage static files in Django 168.