A Travel Agency website developed using Python Django and MySQL Database.
- Responsive UI using Bootstrap
- Login/ SignUp Authentication
- Safe data transfer using Django csrf tokens
- Robust SQL Database
To run this project, you will need to add the following environment variables to your .env file
For Database Integration:-
NAME
ENGINE
PASSWORD
USER
HOST
The secret key
SECRET_KEY
- Home page
- Login/SignUp
- Acessing travel packages
- Travel websites with Itenary & Highlights detail
- Book Now
In this project, we have used Bootstrap to make our UI responsive.
To start with, first you need to install Django on your device or you can install it in your own virtual environment.
When the Django is ready to go, first step is to make a Project.
django-admin startproject 'project_name'
After done with making project in django, you can see it in your project_folder.
Now, just a glimpse of what we have in our project folder:
An entry-point for ASGI-compatible web servers to serve your project.
This is is most important file of your project which consists of all necessary set of instructions like Database Configuration, Middleware settings, Security supports, etc.
Django has many predefined variable names which comes in handy during configuration. So, it's better to use them to avoid any errors. For more information, check this out.
This file is the Navigator of our Project! It consists of all the url path of or apps existing in the project!, also we can assign them with some names. For eg:-
path('', include('travel.urls')) # default for home page
path('admin/', admin.site.urls) # For admin page
This file helps you to demonstrate or run your project with a pre-given gift from django that is their own environmental server.
You can run your project by this comand on your terminal:-
python manage.py runserver
Django is all about making things simple. MAking th use of Template Language, I have changed the Website completely dynamic.
Most Amazing part is my all Packages page use the same Layout and there is no need for coding each and every page every time.
{% extends base.html %}
{% block content %}
// The code if required
{% endblock %}
Client: Html, CSS, Python Django, Bootstrap, JavaScript
- Learned Basics of Python.
- Study of Django Framework.
- Use of DTL (Django Template Language).
- Using base template file for multiple web-pages.
- Learned to make responsive UI using Bootstrap.
If you have any feedback, please reach out to me at mail