Django Interview Questions and Answers

Q1).Explain what is Django?
Ans1: Django is a web framework in python to develop a web application in python.
Django is a free and open source web application framework, written in Python.
Q2).Mention what are the features available in Django?
Ans2: Features available in Django are
Ans1: Django is a web framework in python to develop a web application in python.
Django is a free and open source web application framework, written in Python.
Q2).Mention what are the features available in Django?
Ans2: Features available in Django are
- Admin Interface (CRUD)
- Templating
- Form handling
- Internationalization
- Session, user management, role-based permissions
- Object-relational mapping (ORM)
- Testing Framework
- Fantastic Documentation
Q3).Mention the architecture of Django architecture?
Ans3: Django architecture consists of
Ans3: Django architecture consists of
- Models: It describes your database schema and your data structure
- Views: It controls what a user sees, the view retrieves data from appropriate models and execute any calculation made to the data and pass it to the template
- Templates: It determines how the user sees it. It describes how the data received from the views should be changed or formatted for display on the page
- Controller: The Django framework and URL parsing
Q4).Why Django should be used for web-development?
Ans4:
Ans4:
- It allows you to divide code modules into logical groups to make it flexible to change
- To ease the website administration, it provides auto-generated web admin
- It provides pre-packaged API for common user tasks
- It gives you template system to define HTML template for your web page to avoid code duplication
- It enables you to define what URL be for a given function
- It enables you to separate business logic from the HTML
- Everything is in python
Q5). Explain how you can create a project in Django?
Ans5: To start a project in Django, you use command $ django-admin.py and then use the command
Project
_init_.py
manage.py
settings.py
urls.py
Ans5: To start a project in Django, you use command $ django-admin.py and then use the command
Project
_init_.py
manage.py
settings.py
urls.py
Comments
Post a Comment