Skip to content

Balamurugan-1511/django-orm-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django ORM Web Application

AIM

To develop a Django application to store and retrieve data from a database using Object Relational Mapping(ORM).

Entity Relationship Diagram

output

DESIGN STEPS

STEP 1:

enter the python code

STEP 2:

enter the customer details in django-orm

STEP 3:

push the code to github Write your own steps

PROGRAM

from django.db import models
from django.contrib import admin

# Create your models here.
class Customer(models.Model):
    customerid=models.CharField(max_length=8,help_text="customer id")
    customername=models.CharField(max_length=100)
    age=models.IntegerField(max_length=2)
    mobileno=models.CharField(max_length=10)
    email=models.EmailField()


class CustomerAdmin(admin.ModelAdmin):
    list_display = ('customerid','customername')

OUTPUT

output output

RESULT

thus the experiment executed sucessfully

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%