#Booking System
Booking System is a web application based on Django framework and can be used to book different halls.
Note: See branch 'gd' for updated code.
Booking System is a Django based web application. The primary aim of this application is to minimize the wastage of time and money.
For the installation of Requiremets listed above, run the following commands in terminal:
-
$ sudo apt-get install apache2
-
$ sudo apt-get install mysql-server
-
$ sudo apt-get install python
-
$ sudo apt-get install python-pip
-
$ sudo apt-get install python-mysqldb
-
$ pip install virtualenv
-
Configuring Virtualenv
- virtualenv venv
- source venv/bin/activate
-
$ pip install django==1.7.3
-
$ pip install mysql-python
-
Now run the command
$ pip freeze
And the output should be similar to:
Django==1.7.3
MySQL-python==1.2.5
argparse==1.2.1
wsgiref==0.1.2
-
Log into you mysql account using the command:
mysql -u root -p
-
Create a new database for bookingsystem inside mysql shell:
mysql> create database bookingsystem;
mysql> quit
- Clone this repository using terminal:
git clone https://github.com/rvirdiz/booking_system.git
- Now traverse to the directory:
cd booking_system/src
-
Edit booking_system/settings.py file. Things to be edited are:
- In the 'DATABASES' section, replace the root in the 'USER' field with your mysql username and 1234 with your mysql password.These are the details those you entered in step 2 above.
-
Create a superuser for your project:
python manage.py createsuperuser
Now add Username, email(optional) and password.
- To see the project working, shoot the following commands:
python manage.py migrate
python manage.py runserver 7000
Make sure you are in the booking_system/src directory in which the file 'manage.py' exists.
- Now open your web browser with the address:
Enter the username and password similar to that you entered in step 6 above.
If you find any problem at any step of the installation, feel free to email us and for more detail check out the blog links given here.
##Mentor
Dr. Hardeep Singh Rai
Website: http://gndec.ac.in/~hsrai
##Developers
Mandeep Singh
Contact: [email protected]
Ramandeep Singh
Contact: [email protected]