DJango Web Framework:
It is a free and open source framework for making web applications using python. It is claimed to be a
batteries included framework.
It includes the Admin Site, An Object Relational Mapper(ORM), Authentication, Caching etc.
A Web Application works by having a Front end(Browser/Client) and a Backend(Server).
Recently the trend has been to have the server expose a set of server api endpoints and supply only the data. This data can be either in XML or JSON format.
Front end could be a React/Vue/Angular project.
We cannot compare DJango with React or Vue as they both work at the front end and DJango
is a server technology. A better comparison would be between django and ASP.net core or Express.
We could however use DJango to build the server APIs.
Here is a list of Questions you can pose to the students(VTU):
Laboratory Component:
1. Installation of Python, Django and Visual Studio code editors can be demonstrated.
2. Creation of virtual environment, Django project and App should be demonstrated
3. Develop a Django app that displays current date and time in server
4. Develop a Django app that displays date and time four hours ahead and four hours before as an offset of current date and time in server.
5. Develop a simple Django app that displays an unordered list of fruits and ordered list of selected students for an event
6. Develop a layout.html with a suitable header (containing navigation menu) and footer with copyright and developer information. Inherit this layout.html and create 3 additional pages: contact us, About Us and Home page of any website.
7. Develop a Django app that performs student registration to a course. It should also display list of students registered for any selected course. Create students and course as models with enrolment as ManyToMany field.
8. For student and course models created in Lab experiment for Module2, register admin interfaces, perform migrations and illustrate data entry through admin forms.
9. Develop a Model form for student that contains his topic chosen for project, languages used and duration with a model called project.
10. For students enrolment developed in Module 2, create a generic class view which displays list of students and detailview that displays student details for any selected student in the list.
11. Develop example Django app that performs CSV and PDF generation for any models created in previous laboratory component.
12. Develop a registration page for student enrolment as done in Module 2 but without page refresh using AJAX.
13. Develop a search application in Django using AJAX that displays courses enrolled by a student being searched.
You can download the Lab Manual (PDF) from Here: https://drive.google.com/file/d/1MtkObE3iD7kD05cTQcnAwDT298rhXTRf/view?usp=sharing
No comments:
Post a Comment