To develop a Django application to store and retrieve data from a database using Object Relational Mapping(ORM).
Include your ER diagram here
Clone the empty Repository from Github.
Under the directory Dataproject install a django project named 'myapp'.Check database engine 'sqlite'.
Write our code in models.py and admin.py and modify setting.py.Run Django project.
from django.db import models from django.contrib import admin
class Student (models.Model): referenceno=models.CharField(primary_key=True,max_length=6,help_text='reference number') name=models.CharField(max_length=50) age=models.CharField(max_length=20) email=models.EmailField() mobileno=models.IntegerField()
class StudentAdmin(admin.ModelAdmin): list_display=('referenceno','name','age','email','mobileno')
from django.contrib import admin from .models import Student,StudentAdmin
admin.site.register(Student,StudentAdmin)
The program is executed sucessfully executed

