Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
9 views2 pages

Django Interview Questions - Class - Concepts

The document contains a comprehensive list of Django interview questions covering various concepts such as models, field types, database configuration, relationships, inheritance, ORM, templates, forms, views, authentication, and middleware. It addresses differences between various Django components and functionalities, as well as best practices for implementing them. This resource serves as a guide for candidates preparing for Django-related interviews.

Uploaded by

akashpramodpatil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Django Interview Questions - Class - Concepts

The document contains a comprehensive list of Django interview questions covering various concepts such as models, field types, database configuration, relationships, inheritance, ORM, templates, forms, views, authentication, and middleware. It addresses differences between various Django components and functionalities, as well as best practices for implementing them. This resource serves as a guide for candidates preparing for Django-related interviews.

Uploaded by

akashpramodpatil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Django Interview Questions (concepts related)

1. What is a model?

2. What are the some of FieldTypes that we use regularly in project?


3. What is the difference between IntegerField() and BigIntegerField()?

4. What is the difference between CharField() and TextField()?


5. Where do we configure the database in the django project?

6. What is the meaning of "ENGINE" and "NAME" while database is configuring?

7. How to verify weather we have given proper database details or not while database is configuring?

8. What is the function name that we use to exceute the connection to verify the database details?
9. What is the purpose of implementing relationaships between two models?

10. What are the different types of relationaships in django?


11. What is the name of FieldType that we use to implement in one to one relationaship?

12. What is the name of FieldType that we use to implement Many to one relationaship?
13. What is the difference between one to one and many to one relationships?

14. What is model-inheritance?


15. What are the different types of inheritance?
16. What is an abstract model inheritance?

17. What is a proxy model inheritance?


18. What is the difference between abstract and proxy inheritance?

19. What is a multilevel model inheritance? what is the advantage?

20. What is a multiple model inheritance? what is the advantage?

21. What is model manager?

22. can we create custome model manager?

23. What is Meta class?


24. What are the some restrictions to create field names?

25. What is an ORM?


26. How to fetch all records from database?

Note: Check all ORM operations in the notes.


27. What is a template?

28. What is the name of template that we use to implement template inheritance? (base.html)
29. Eventhough Django follows MVT, but Templates is not default file in Django, Why?
30. When do we go for templates?

31. What is the meanining of template-inheritance?


32. How to manage static files in django?

33. What is a form? where do we implement forms?


34. What is the difference between forms.Form and forms.ModelForm classes?

35. What are the methods names that every form follows?
36. What is the difference between get() and post()?

37. What is the difference between HttpRequest() and HttpResponse().


38. What is a cookie and sessions?

39. How to implement check box option in the django form? (by using django-multiselectfield module)
40. Where do we write the business coding in the django project?

41. What is the difference between template and context?


42. What is a form validation? what are the different ways to implement form validations?
43. What is a view?

44. What is the difference between function based and class based views?

45. can we write multiple views in single views.py file.

46. What is the use of authenticate() , login() and logout() methods from auth application?
47. Why middlewares are used in the django?

48. Can we create urls.py file in the application?


49. If we create urls.py file in the application then how to include the application urls.py in the project level
urls.py file?
50. what is the difference between filter() and exclude()

You might also like