Top Django Interview Questions

 

This time, i had compiled some Django Interview Questions. 

This List might come handy to both Interviewer and Interviewee. 

  1. How do you create new project in Django ?
  2. How do you create new app in Django ?
  3. Explain MVT architecture of Django ?
  4. What are Middlewares ?
  5. How do you create custom Middleware ? What special methods are used to handle request/response/exception ?
  6. In what order does middlewares listed in settings.py are executed when request comes ? Top to bottom or bottom to up.
  7. In what order does middlewares listed in settings.py are executed when response goes ? Top to bottom or bottom to up.
  8. Explain Django ORM(Object-relational mapper) ?
  9. How does session framework works in Django ?
  10. What is CSRF ? How can you prevent csrf attack ?
  11. What are Django forms ?
  12. What are Django Models ?
  13. How do you migrate your tables in Django ?
  14. What are model manager and how do you write custom manager ?
  15. What are Django Templates ? How template inheritance works in Django ?
  16. What is the use of wsgi.py file ?
  17. What are signals ? How do you create custom signals in Django ?
  18. What are receiver functions in Django ?
  19. What are Django template tags ?
  20. How do you create custom template tags ?
  21. What are generic views ? How many types of generic views are there ?
  22. What’s the difference between select_related and prefetch_related in Django ORM?
  23. What is the use of context processors in Django ?
  24. What 3rd party Django apps you have used ?
  25. What are Python Virtual Environments ?

 

Advertisements

Create Pycharm Launcher in Ubuntu

Quick way to create Pycharm launcher. 

  1. Start Pycharm using the ./pycharm.sh file located under bin folder.
  2. Once the Pycharm application loads, navigate to tools menu and select “Create Desktop Entry..”
  3. This type of window will open up. Selection_500
  4. Check the box if you want the launcher for all users.
  5. If you Check the box i.e “Create entry for all users”, you will be asked for your password.
  6. A message should appear informing you that it was successful.
  7. Now Restart Pycharm application and you will find Pycharm in Unity dash and Application launcher.