This project is a Django-based web application that allows users to track flights and gather information about airports. The application fetches data from the Aerodatabox API to provide detailed flight and airport information.
- Search for flights using their flight ID.
- View detailed flight information, including aircraft details and images.
- Get information about airports, including their ICAO code.
To run this project, ensure you have the following installed:
- Python 3.8 or higher
- pip (Python package installer)
- Git
git clone https://github.com/Canerakcasu/AIRPORTTRACKER.git
cd AIRPORTTRACKERpython -m venv .venv
source .venv/bin/activate # For macOS/Linux
# On Windows:
# .venv\Scripts\activatepip install -r requirements.txtpython manage.py migratepython manage.py runserverOpen your browser and go to:
http://127.0.0.1:8000/
This project uses the Aerodatabox API to fetch flight and airport data. Ensure you have a valid API key.
- Replace the API key in
views.pywith your own:headers = {'x-magicapi-key': 'YOUR_API_KEY'}
- Save the file.
If you're working on this project with friends:
- Clone the repository (as shown above).
- Make your changes locally.
- Add and commit your changes:
git add . git commit -m "Your commit message"
- Push your changes:
git push origin main
- If there are conflicts, resolve them locally and push again.
AIRPORTTRACKER/
├── flights/
│ ├── views.py # Contains the logic for handling requests
│ ├── urls.py # URL routing
│ ├── templates/
│ │ ├── index.html
│ │ ├── search_results.html
├── static/ # Contains static files like CSS and images
├── manage.py # Django management script
-
If you encounter "ModuleNotFoundError", ensure all dependencies are installed using:
pip install -r requirements.txt
-
If migrations fail, ensure your database setup is correct and retry:
python manage.py migrate
- Caner Akçasu (SD1)
- Kaan Yazicioglu (SD4)
This project is open-source and available under the MIT License.