A simple weather application built using Django that fetches real-time weather data from the OpenWeatherMap API. Users can enter a city name to get weather details such as temperature, description, wind speed, and humidity.
- Get real-time weather updates for any city.
- Displays temperature, weather description, wind speed, and humidity.
- Default city is set to Kathmandu if no input is given.
- Handles errors when an invalid city is entered.
weatherapp/
│── app/ # Django app
│ ├── migrations/ # Database migrations
│ ├── templates/ # HTML Templates
│ ├── static/ # Static files (CSS, JS, images)
│ ├── views.py # Backend logic for fetching weather
│ ├── models.py # Database models (if needed)
│ ├── urls.py # URL routing
│ └── forms.py # Forms (if needed)
│── weatherapp/ # Django project settings
│ ├── settings.py # Project settings
│ ├── urls.py # Main URL configuration
│ ├── wsgi.py # WSGI entry point
│── db.sqlite3 # SQLite database (if used)
│── manage.py # Django management commands
│── requirements.txt # Dependencies list
│── README.md # Project documentation
Follow these steps to get the project up and running locally:
Start by cloning the repository to your local machine using the following command:
git clone https://github.com/red445992/Weather_App.gitpython -m venv venv- And activate the env
.\venv\Scripts\activate
pip install -r requirements.txt python manage.py migratepython manage.py createsuperuserpython manage.py runserver