To develop a Django application to store and retrieve data from a database using Object Relational Mapping(ORM).
Install myapp using command prompt
Edit setting.py and model.py
create a username and password using for your django 'python manage.py createsuperuser' and then run the program using python manage.py runserver [your port number]"
Login with your username and passowrd in django and select student table and then add 10 students details.
End the program
from django.db import models
from django.contrib import admin
class Student (models.Model):
referencenumber=models.CharField(primary_key=True,max_length=20,help_text="reference number")
name=models.CharField(max_length=100)
age=models.IntegerField()
email=models.EmailField()
mobileno=models.IntegeField()
class StudentAdmin(admin.ModelAdmin):list_display=('referencenumber','name','age','email','mobileno')
from django.contrib import admin from .models import Student,StudentAdmin
admin.site.register(Student,StudentAdmin)
The program is executed successfully

