Travel Application in Django

Create a simple travel application using the Amadeus Self-Service APIs.

We'll cover the following

In this lesson, we’ll use Bootstrap and Amadeus Self-Service APIs to build a simple travel application using the Python-based web framework, Django. This application will allow us to get trip recommendations, search for the cheapest flights for a given trip itinerary, and search for hotels to stay at our planned destination.

Run the application

Note: Make sure you’ve saved the CLIENT_ID and CLIENT_SECRET already. We’ll generate the ACCESS_TOKEN automatically in line 19. This will ensure that our application runs smoothly without going back to generate the ACCESS_TOKEN again in case it expires.

For city codes, refer to the appendix.

Step 1: Click the “Run” button to start the application.

Step 2: You’ll see the home page for our application with two buttons “Search Trip” and “Plan a Trip.”

The “Search Trip” button will redirect you to the trip recommendations page where you’ll be able to find travel destinations similar to a given location for travelers from a particular country.

The “Plan a Trip” button will redirect you to the trip planning page where you’ll be able to search for the cheapest flights for your trip and hotels to stay at your planned destination.

Click any one of them.

Step 3: You’ll be redirected to a new page. Fill in the required information and click the “Submit” button to see the results.

Get hands-on with 1200+ tech skills courses.