Skip to content

mathanrajsaveetha/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 bus information using orm.

Entity Relationship Diagram

Bus Information Entity Diagram

entity

DESIGN STEPS

S### TEP 1: Clone the repository to theia ide. start a new app inside the project folder.

STEP 2:

Type the appropriate code for your table and provide appropriate data types to the columns.

STEP 3:

Create a report about your project in readme.md file and upload the django.orm.app folder to your remote repository.

PROGRAM


from django.db import models
from django.contrib import admin
# Create your models here.
class Bus(models.Model):
    Busno = models.IntegerField(primary_key=True, help_text="Busno")
    driver=models.CharField(max_length=100)
    From=models.CharField(max_length=100)
    To=models.CharField(max_length=100)
    noofseats=models.IntegerField()
class Businfo(admin.ModelAdmin):
    list_display = ('Busno','driver','From','To','noofseats')    

OUTPUT

BusInfo Table

Django-orm

RESULT

Thus the project is developed to have Bus information database

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%