Skip to content

shubyaa/Django_travel_Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travel Lust Website using Django

A Travel Agency website developed using Python Django and MySQL Database.

drawing

Badges

Django Python Bootstrap

Features

  • Responsive UI using Bootstrap
  • Login/ SignUp Authentication
  • Safe data transfer using Django csrf tokens
  • Robust SQL Database

Environment Variables

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

Roadmap

  1. Home page
  2. Login/SignUp
  3. Acessing travel packages
  4. Travel websites with Itenary & Highlights detail
  5. Book Now

Documentation

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. Folder

Now, just a glimpse of what we have in our project folder:

1. ASGI

An entry-point for ASGI-compatible web servers to serve your project.

2. Settings

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.

3. Urls

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

4. Manage

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

Optimizations

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 %}

Screenshots

Image

Image

Image

Image

Demo

Video

Video

Tech Stack

Client: Html, CSS, Python Django, Bootstrap, JavaScript

🔗 Links

linkedin

Lessons Learned

  • 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.

Feedback

If you have any feedback, please reach out to me at mail

About

Travel Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published