To develop a Django application to store and retrieve data from a student database using Object Relational Mapping(ORM).
clone the repository from github.
create an admin interface for django.
create an app and edit settings.py
make migrations and migrate the changes
create admin user and write python code for admin and models.
make all the migrations to 'myapp'.
create an student database with 10 fields using runserver command.
admin.py
from django.contrib import admin
from.models import student,studentAdmin
admin.site.register(student,studentAdmin)
models.py
from django.db import models
from django.contrib import admin
class student(models.Model):
sid=models.CharField(max_length=200)
name=models.CharField(max_length=100)
salary=models.IntegerField()
age=models.IntegerField()
email=models.EmailField()
class studentAdmin(admin.ModelAdmin):
list_display=('sid','name','salary','age','email')
The program for creating an student database using ORM is executed sucessfully.


