To develop a Django application to store and retrieve data from a database using Object Relational Mapping(ORM).
Include your ER diagram here
Write your own steps
Clone the repository in ex02 from github
Move to project directory where manage.py is located and create newapp in Django project (python3 manage.py startapp myapp)
Then, change necessary things in settings.py and add the required codes to models.py and admin.py
Then, migrate the codes using the required command and run the server.
Include your code here
from django.db import models
from django.contrib import admin
class Football(models.Model):
player_name=models.CharField(max_length=20)
age=models.IntegerField()
email=models.EmailField()
class FootballAdmin(admin.ModelAdmin):
list_display=('player_name','age','email')
from django.contrib import admin
from .models import Football,FootballAdmin
admin.site.register(Football,FootballAdmin)
PLAYER DETAILS
Thus the program for creating the database using Django ORM has been executed successfully.

