To develop a Django application to store and retrieve data from a database using Object Relational Mapping(ORM).
Include your ER diagram here
Create a Django app Go to the app directory In models.py create two classes and save the models.py
Go to admins.py and put the two class in admins.py from the models.py and save the file
Start the django server then move to admin page.
MODELS.PY
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()
dept=models.CharField(max_length=5)
class StudentAdmin(admin.ModelAdmin):
list_display=('referencenumber','name','age','email','dept')
ADMIN.PY
from django.contrib import admin
from .models import Student,StudentAdmin
admin.site.register(Student,StudentAdmin)
Thus the program have been executed sucessfully.

