Skip to content

Ayush-gupta-dev/RAILWAY-ROUND2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Completed!

image

image

dummy train data

image created by signals.py

image

dummy station data::

populating from excel to postgres via python script; in build django file:: myapp/management/commands/populate_myapp_station.py

python manage.py populate_myapp_station (django automatically created it)

image image image

admin can add stations and then select trainnumber via one to many relationship; many station one train image

search for train from train number and it will display list of multiple stations

image

implemented From-to destination.

image

User registeration and login

image image

profile and wallet system added

image

Booking models (was a challenging one for me)

image

let say we will book 2AC 37 available

image

used atomicity (all or nothing); django built in function image

currently basic css image

image image

after successfull payment user redirected to myticket page, wallet money deducted, seats updated in our case subtracted by 2 for train 1010 Ac

image image image image

=== after jan 8

image
in def self im taking instance as passenger-name-createdby
image
if admin wants to cancel a ticket he check the checkbox
image
image

added edit functionality for passenger information

image image

Successfully added search and filter by data :)

image input the date get the day from date and simply filter in ORM image image

added export option for Passenger Model, so that admin can download a excel view.

image image

cancelled ticket by admin!

image image image

Mail Service added

image

added user staff permission and login with same interface of website

image image image image image

Google signIn allauth added

(django automatically created necessary fields, nice!) image image

About

DVM round 2 task, bits pilani

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published