To develop a Django application to store and retrieve data from a database using Object Relational Mapping(ORM).
create and collect customers infomartion using django application
Implement that as Python code
push that python code to github
from django.db import models
# Create your models here.
from django.db import models
from django.contrib import admin
# Create your models here.
class Customer(models.Model):
customerid = models.CharField(max_length=8,primary_key=True)
customername =models.CharField(max_length=100)
mobilenumber =models.CharField(max_length=100)
email = models.EmailField()
quantity= models.IntegerField()
class CustomerAdmin(admin.ModelAdmin):
list_display = ('customerid','customername','mobilenumber','email','quantity')
The program was executed Successfully.


