To develop a Django application to store and retrieve data from a database using Object Relational Mapping(ORM).
creating and collecting using django
implementation using python code
pushing 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')
Include your code here
Include the screenshot of your admin page.
thus the experiment was executed successfully