0% found this document useful (0 votes)
4 views

Document 4

Uploaded by

anupamabramesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Document 4

Uploaded by

anupamabramesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Movie Database Management System

1. Abstract
Movie Ticket Booking System is a computerized solution for theatre setups, which will
automate the process of Ticket Sale and Customer Bookings. This application will allow users to
browse movies ltering them based on location, price, rating, genre, timing and age. The home page
will display movies based on lters selected by the user. Once a movie is selected, the users will be
redirected to a page dedicated to the selected movie where booking details, timings, movie rating
and locations will be displayed. On selecting booking options, the user will be directed to a booking
page. Users can choose their preferred seats and show based on availability and preference and
make reservations by submitting a form. Once a user has watched a movie, he/she can mark it as
completed, rate the movie based on his/her experience and give feedback. This feedback will be re
ected in the rating of the respective movie. Users must login to the application after creating an
account for themselves in order to make a booking. Each user pro le will maintain a history of all
previous bookings of the user logged in. Also, this application will allow admins to have a separate
login through which they will be able to add, modify and delete movies from the application. Users
will be able to change passwords based on their need and also reset it in case it is forgotten.
Through this project we aim at implementing various Database Management System concepts like
transaction management and Database security while improving our software development skills.
2. Introduction
Movie Ticket Booking Systems are used all around the world for booking and
reserving movies online. These applications and websites provide customers with facilities to view
movie avail ability online and make reservations with just a few steps.

Since movie ticket booking systems are used at such a large scale and have a lot of
practical application as well as value, we picked this for our project. Our movie ticket management
system, implemented in Django + MySQL allows users to easily make movie reservations. When a
user rst visits the website they are redirected to a home dashboard where all the di erent movies
that are currently in the database are listed along with some key information regarding the movie
including a brief description, PG rating, duration, genre etc. Users have the option to lter movies
based on their personal preferences and choice. This can be done using the lter sidebar which
allows users to lter over various di erent attributes including but not limited to PG rating, duration,
language and genre. Users can also search for a particular movie using the search bar located at the
top of the page.
In order to make a booking all users must rst login to their personal account. If the
user does not have an account, they must make one before they can proceed to make a booking.
Once a user has logged in, they can select the movie that they wish to make a reservation on. This
will redirect the user to a movie page which contains all details regarding the chosen movie. Next
the user must click on Book Now in order to make a reservation. Users are now redirected to a
Booking page where the user can reserve a selected amount of seats for a particular show. Once the
booking is completed successfully, the reservation will be displayed on the users pro le.

The admin has the option to add and delete movies. The users can also reset their
login password and change their pro le picture in the website. The users also have the option of
providing a feedback on the website experience through a feedback forum. This project replicates
the working of a real life movie ticket booking system.
3. ER Diagram
4. Source Code
Filtering the movies based on language, genre, Duration, PG Rating and
ordering based on release date
def home(request ):
i f request .method == ‘GET’ :
# Get language

i f len(request .GET. getlist (‘ language’ )) == 0:


# No language selected LANGUAGES = “(SELECT language FROM dashboard_movie)”
else :
LANGUAGES = request .GET. getlist ( ‘language’ ) # Get genre

i f len(request .GET. getlist (‘ genre’ )) == 0:


# No genre selected GENRES =” (SELECT genre FROM dashboard_movie)” else :
GENRES = request .GET. getlist (‘ genre’ ) # Get max duration
i f request .GET. get (‘ duration’ ):

DURATION = request .GET. get( ‘duration ‘)


else :
DURATION = “(SELECT MAX(duration) FROM dashboard_movie)”
#Get max pg_rating
If request.GET.get(‘pg_rating’):

PG_RATING=request.GET.get(‘pg_rating’)
Else:
PG_RATING=”(SELECT MAX(pg_rating) FROM dashboard_movie)”
#Get order_by
If request.GET.get(‘order_by’):
ORDER_BY=request.GET.get(‘order_by’)
Else:
ORDER_BY=”release_date”
5. Results

You might also like