diff --git a/README.md b/README.md index 4b0e63d4..6ef0c756 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,57 @@ -# Django ORM Web Application +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 -Include your ER diagram here +![project](./dataproject/images/er%20diagram.png) + ## DESIGN STEPS -### STEP 1: +### STEP 1: + +TO CREATE A ORM-APP USING OUR OWN WEBSERVER ### STEP 2: +EXCECUTE THE COMMANDS CORRECTLY IN THE TERMINAL AND MAKE SOME CHANGES IN THE MODELS.PY AND ADMIN.PY AND RUN THE SERVER + ### STEP 3: +OPEN THE DJANGO SERVER AND THE APP IS READY TO EXCEUTE OUR INFORMATIONS + Write your own steps ## PROGRAM -Include your code here + +from django.db import models +from django.contrib import admin +# Create your models here. +``` +class train(models.Model): + trainnumber = models.IntegerField(max_length=10, help_text="Your Train Number") + name =models.CharField(max_length=100) + age = models.IntegerField() + email = models.EmailField() + destination = models.CharField(max_length=100) + stationname = models.CharField(max_length=100) + destination = models.CharField(max_length=100) + classtype = models.CharField(max_length=128) + depaturedate = models.DateField() +class TrainAdmin(admin.ModelAdmin): + list_display = ('trainnumber','name','age','email','stationname','destination','classtype','depaturedate') +``` + ## OUTPUT -Include the screenshot of your admin page. +![admin.py](./dataproject/images/readme.png) + +![output](./dataproject/images/output.png) -## RESULT +## RESULT: +THE APP IS CREATED AND EXCECUTED PROPERLY \ No newline at end of file diff --git a/dataproject/images/er diagram.png b/dataproject/images/er diagram.png new file mode 100644 index 00000000..49a15213 Binary files /dev/null and b/dataproject/images/er diagram.png differ diff --git a/dataproject/images/output.png b/dataproject/images/output.png new file mode 100644 index 00000000..c41c0df9 Binary files /dev/null and b/dataproject/images/output.png differ diff --git a/dataproject/images/readme.png b/dataproject/images/readme.png new file mode 100644 index 00000000..3c707fe5 Binary files /dev/null and b/dataproject/images/readme.png differ