This project is entitled Online Bus Reservation System. This is a web-based application that provides an online platform for the Bus Company's customers/passengers to book their seats ahead of time. The application helps the passengers to find the available scheduled bus trip that matches their desired depart date and destination. The application was developed using Python and Django Framework. It has a pleasant user interface with the help of the Bootstrap Framework. The project also has user-friendly features and functionalities
I developed this project using the following:
This Online Bus Reservation System Project is accessible only to the public. Aside from Django's Built-in Admin Site, the management has its own Admin Site where the management users can access and manage all the data of the system. The admin users can manage the Bus Category, Bus, Location, and Trip Schedule List. Admin Users are the ones who are in charge of updating or managing the booking or reservation list. The possible passenger can simply browse the system. Passengers explore the different trip schedules of the company. They can also find the available trips on their desired date to depart and their destination. Passengers can book or reserve their seats by simply filling the fields of the booking list.
The system source code is free to download on this project and only for educational purposes only. The source code is not that so tricky which means not that difficult to understand. Feel free to download and modify the source code the way you wanted.
zip
file. (download button is located below)cd C:\Users\Personal-23\Desktop\django_btrs
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
http://localhost:8000/
or http://127.0.0.1:8000/
Note: I might forget to list some other modules/libraries. Kindly Install the missing modules if any occurred.
SuperUser
Username: admin
Password: admin123
That's it! I hope this will help you with what you are looking for. Maybe you'll find this Online Bus Reservation System useful and can help you with your future Python Django Projects.
Explore more on this website for more Free Source Codes and Tutorials.
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
def count_available(self): booked = Booking.objects.filter(schedule=self).aggregate(Sum('seats'))['seats__sum'] # Check if booked is None if booked is None: # Set booked to zero booked = 0 return self.bus.seats - booked
def count_available(self): booked = Booking.objects.filter(schedule=self).aggregate(Sum('seats'))['seats__sum'] # Check if booked is None if booked is None: # Set booked to zero booked = 0 return self.bus.seats - booked