Travel Management System Project in Django with Source Code

Travel Management System Project in Django with Source Code

A Travel Management System Project in Django projects, as we all know, are popular topics for academic python project creation. As a result, we decided to create a travel management framework using Python Django. We built features for credit card payment, tour booking, and other tasks in this project to minimize human effort and increase productivity. The travel agency module is typically used to handle hotel reservations, while the customer module handles customer features.

The Travel Management System is an easy project for beginners to learn how to build a web-based python Django project. We will provide you with the complete source code and database for the python project so that you can easily install it on your machine and learn how to program in Python Django.

To start creating a Travel Management System Project in Python Django, makes sure that you have PyCharm Professional IDE Installed in your computer.

Travel Management System Project in...
Travel Management System Project in Django with Source Code 2021 | Django with Source Code

This Travel Management System in Django Framework, Also includes a Download Source Code for free, just find the downloadable source code below and click download now.

About ProjectProject DetailsDefinition
Project Name Travel Management System Project in DjangoThis Travel Management System in Django is a Python-based project. Using Python, Django, and MySQL, we built a travel management system. The key module in this project is the booking module, which handles the booking features.
Python version (Recommended)3.8 VersionPython 3.8 introduces some new syntax to the language, as well as a few small modifications to existing behavior and, most importantly, a slew of performance improvements, following in the footsteps of the previous 3.7 version.
Programming Language UsedPython Django LanguageDjango is a high-level Python web framework for building safe and maintainable websites quickly. Django is a web framework built by experienced developers that takes care of a lot of the heavy lifting so you can focus on developing your app instead of reinventing the wheel.
Developer Name itsourcecode.comFree projects containing source code in Java, PHP, Python, Django, VB.Net, Visual Basic, C, C++, C#, Javascript, and other languages are available on this website.
IDE Tool (Recommended)Sublime, Visual Studio, PyCharmSublime Text is a source code editor that is available for purchase. It comes with built-in support for a variety of programming and markup languages. Plugins, which are often community-built and maintained under free-software licenses, allow users to extend the functionality of the system. Sublime Text has a Python API to help with plugins.
Project Type Web ApplicationA web application, unlike computer-based software programs that operate locally on the device’s operating system, is application software that runs on a web server. The user uses a web browser with an active network connection to access web apps.
DatabaseSQLiteSQLite is a programming language that is used to create embedded software for devices such as televisions, cell phones, and cameras. It can handle HTTP requests with low to medium traffic. SQLite has the ability to compress files into smaller bundles with less metadata. SQLite is a temporary dataset that is used within an application to process data.
Travel Management System Project in Django overview

Admin Features of Travel Management System Project in Django

  • Users Management – For the users, The admin can see the list of users details. Admin can update and delete the record of the users details.
  • Manage Package Details– For the clients, The admin can see the list of Package details. Admin can update and delete the record of the Package details.
  • Login – By default the admin need to login first to enable to access the system.
  • Manage Change Password– For the change password, The admin can change strong password for better security in the system to avoid hacking the important details.

User Features of Travel Management System Project in Django

  • Homepage– For the homepage, The user can see the information about packages in a place and amounts.
  • Manage Signup– For the signup, The user need to sign first to create an account.
  • Login – For the login, After creating an an account the user need to login first to access the system.
  • About Us– For the about us, It is all about mission and vision of travel management system.
  • Booking Tour – For the booking tour, The user can reserved a place like hotel and resort.
  • Payment – For the payment, The user need to pay using credit card or online banking.

Travel Management System Project in Django Steps on How to Create a Project

Time needed: 5 minutes.

Here’s the step’s on how to create a Travel Management System Project in Django

  • Step 1: Open file.

    First , open “pycharm professional” after that click “file” and click “new project“.
    Create new Project for Travel Management System Project in Django with Source Code

  • Step 2: Choose Django.

    Next, after click “new project“, choose “Django” and click.
    chochoose Django for Payroll Management System Project in Django with Source Codeose django for Travel Management System Project in Django with Source Code

  • Step 3: Select file location.

    Then, select a file location wherever you want.
    Create location for Travel Management System Project in Django with Source Code

  • Step 4: Create application name.

    After that, name your application.
    Create application name for Travel Management System Project in Django with Source Code

  • Step 5: Click create.

    Lastly, finish creating project by clicking “create” button.

  • Step 6: Start Coding.

    Finally, we will now start adding functionality to our Django Framework by adding some functional codes.

Functionality and Codes of the Travel Management System Project in Django

  • Create template for the login in form in Travel Management System Project in Django.

In this section, we will learn on how create a templates for the login form. To start with, add the following code in your login.html under the folder of loginmodule/templates/.

<!-- login.html -->

{% extends 'home.html' %}
{% block content %}
<div class="agile-login">
		<div class="wrapper" >
			<h2>Login</h2>
			<div class="w3ls-form">
				<form action="/loginmodule/auth/" method="post">{% csrf_token %}
					<label>Username</label>
					<input type="text" name="username" placeholder="Username" required/>
					<label>Password</label>
					<input type="password" name="password" placeholder="Password" required />
                    <input type="submit" value="Log In" />
				<a href="/SignupApp/signup/" class="pass">Don't have account?SignUp</a>
				</form>
			</div>
            <br><h3 style="color: orangered"> {{ error }}</h3>
        </div>
		<br>
</div>
{% endblock %}
  • Create template for the home in Travel Management System Project in Django.

In this section, we will learn on how create a templates for the home. To start with, add the following code in your home.html under the folder of loginmodule/templates/.

{%extends 'dashboard/base.html' %}
{%block content %}
<section id="main-content">
                    <div class="space-30"></div>
                    <div class="container">
                     
                        <div class="row">
                           
                            <div class="col-md-12">
                                <div class="panel">
                                    <header class="panel-heading">
                                        <h2 class="panel-title ">Products</h2><button type="button"
													              class="btn btn-primary pull-right btn-sm js-add-product"
													              data-url="{% url 'dashboard:create_product' %}">
													                <span class="glyphicon glyphicon-pencil"></span> Add Products <span class="fa fa-plus"></span></a>
													        </button>
                                    </header>
                                    <div class="panel-body">
	                                    <div class="table-responsive">
			                                <table class="table table-hover table-striped" id="product-table">
			                                    <thead>
			                                        <tr>
			                                            <th>#</th>
			                                            <th>Name</th>
			                                            <th>Rate</th>
			                                            <th>Tenure</th>
			                                            <th>Frequency</th>
			                                            <th>Guarantor</th>
			                                            <th>Collateral</th>
			                                            <th>Actions</th>
			                                        </tr>
			                                    </thead>
			                                    <tbody>
			                                    {% include 'dashboard/includes/partial_product_list.html' %}
			                                    </tbody>
			                                </table>
                                        </div>
                                    </div>
                                </div>
                                <div class="modal  " id="modal-product">
	                                <div class="modal-dialog">
		                                <div class="modal-content"></div>
	                                </div>
                                </div>
                            </div><!--col end-->
                        </div>
                    </div><!-- end of container-->

                    <!--footer start-->
                    
{% endblock %}

  • Create template for the booking tour in Travel Management System Project in Django.

In this section, we will learn on how create a templates for the booking tour. To start with, add the following code in your home.html under the folder of BookTicketApp/templates/.

<!-- book_Ticket.html -->

{% extends 'home.html' %}
<div class="agile-login">
{% block content %}
		<div class="wrapper">
			<h2>Book tour</h2>
			<div class="w3ls-form">
				<form action="/BookTicketApp/bookingdataadd/" method="post">{% csrf_token %}
                <label>Booking id</label>
                <input type="text" name="bookingid" value="{{ randomid }}"  readonly maxlength="6">
                <label>From</label>
                <select name="source">
                    <option>Manila</option>
					<option>Cebu</option>
                    <option>Laguna</option>
                    <option>Makati</option>
                    <option>Negros</option>
                    <option>Pasig</option>
                    <option>Batangas</option>
                    <option>Abra</option>
                    <option>Baguio</option>
                    <option>Saranggani</option>
                    <option>Mindanao</option>
                </select>
                <label>To</label>
                <select name="destination">
                    <option>Kabankalan</option>
                    <option>Himamaylan</option>
                    <option>DUmaguete</option>
                    <option>Hinigaran</option>
                    <option>Bago</option>
                    <option>Valladolid</option>
                    <option>Guimaras</option>
                    <option>Iloiolo</option>
                    <option>Dumangas</option>
                    <option>Palawan</option>
                    <option>Antique</option>
                    <option>Aklan</option>
                </select>
                <p style="color: red">{{ request.session.error3 }}</p>
                <label>Package</label>
                <select name="package">
                {% for pack in packs %}
                    <option value='{{ pack.pname }}'>{{ pack.pname }}</option>

                {% endfor %}
                </select>

                    <label>Departure date</label>
                    <input id="datefield" type="date" name="date" onload="setMinDate()">
                    <script>
                        setMinDate();
                        function setMinDate(){
                            var today = new Date();
                            var dd = today.getDate();
                            var mm = today.getMonth()+1;
                            var yyyy = today.getFullYear();
                            if(dd<10){
                                dd='0'+dd
                            }
                            if(mm<10){
                                mm='0'+mm
                            }
                            today = yyyy+'-'+mm+'-'+dd;
                            document.getElementById("datefield").setAttribute("min", today);
                        }
                    </script>
                    <label>No of person</label>
			    <input type="text" name="person" placeholder="" id="from" required>
                <input type="submit" value="book" />
				</form>
            </div>
        </div>
		<br>
{% endblock %}
</div>
  • Create template for the payment in Travel Management System Project in Django.

In this section, we will learn on how create a templates for the home. To start with, add the following code in your payment_mode.html under the folder of PaymentApp/templates/.

<!-- payment_mode.html -->

{% extends 'home.html' %}
<div class="agile-login">
{% block content %}
		<div class="wrapper">
         {% if request.session.mode == "Net banking" %}
                <h2>Net banking</h2>
			    <div class="w3ls-form">
                <form action="/PaymentApp/bill/" method="post">{% csrf_token %}
                    <label>Select bank</label>
                    <select name="bank">
                        <option>Philippine National Bank</option>
                        <option>Bank of Philippine Island</option>
                        <option>RCBC Bank</option>
                        <option>Land Bank</option>
                        <option>China Bank</option>
                        <option>BDO Bank</option>
                        <option>Union Bank</option>
                        <option>Rural Bank of Marayo</option>
                    </select>
                     <label>Username</label>
                     <input type="text" name="username" required>
					 <label>password</label>
                     <input type="password" name="password" required>
                     <input type="submit" value="Pay now" />
				</form>
                </div>
         {% else %}
                {% if request.session.mode == "Credit card" %}
			        <h2>Credit card info</h2>
                {% else %}
                    <h2>Debit card info</h2>
                {% endif %}
             <div class="w3ls-form">
				<form action="/PaymentApp/bill/" method="post">{% csrf_token %}
                <label>Name on Card</label>

                <input type="text" name="name_on_card">
					<label>Card number</label>
                <input type="text" name="cardno" placeholder="xxxx-xxxx-xxxx-xxxx">
                <label>Expiration</label>
                <input type="month" name="expired_date">
                <label>CVC number</label>
                <input type="text" name="cvcno" placeholder="xxx" maxlength="3">
                <input type="submit" value="pay now" />
                </form>
             </div>
         {% endif %}
        </div>
		<br>
 {% endblock %}
</div>

Downloadable Source Code Below.

Anyway, if you want to level up your programming knowledge, especially python, try this new article I’ve made for you Best Python Projects with source code for Beginners. But If you’re going to focus on web development using Django, you can download here from our list of Best Django Projects with source code based on real-world projects.

How To Run The Travel Management System Project in Django?

  • Step 1: Extract/unzip the file
  • Step 2: Go inside the project folder, open cmd and type the following commands to install Django Framework and run the webserver:
  • pip install -r requirements.txt
  • python manage.py migrate
  • python manage.py runserver
  • Step 3: Finally, open the browser and go to http://127.0.0.1:8000/

For admin panel:

  • Username: admin
  • Password: adminl12345

Summary

In summary, this 2022 Travel Management System Project in Django with Source Code can be useful to students or professional who wants to learn python programming language. This project can also be modified to fit your personal requirements. Hope this project will help you to improve your skills. Happy Coding!

Inquiries

If you have any questions or suggestions about Travel Management System Project in Django with Source Code, please feel free to leave a comment below.

Leave a Comment