To develop a Django application to store and retrieve data from a database using Object Relational Mapping(ORM).
Fork and clone the repositary in to your IDE.
Create a django project and an app and a superuser account and run the server.
Modify changes in settings and write ur code on models and admin and run the server.
Login in to admin using your superuser account and populate the records.
from django.db import models
from django.contrib import admin
# Create your models here.
class Laptop(models.Model):
Productid= models.CharField(max_length=100,primary_key = True)
Brandname = models.CharField(max_length=100)
Modelname = models.CharField(max_length=80)
Os = models.CharField(max_length=100)
Colour = models.CharField(max_length=100)
Price = models.IntegerField()
class LaptopAdmin(admin.ModelAdmin):
list_display = ('Productid','Brandname','Modelname','Os','Colour','Price')
Thus we developed a Django application to store and retrieve data from a database using Object Relational Mapping(ORM).

