Welcome to the Weather Web App! This application allows users to search for a city and view the current weather, as well as the daily and hourly forecasts for that location. The app is built using Django and styled with Bootstrap.
- Search for a city to get weather information.
- View current weather conditions.
- Access daily weather forecasts.
- Check hourly weather forecasts.
Follow these steps to set up the project on your local machine.
-
Clone the repository
git clone https://github.com/yourusername/weather-webapp.git cd weather-webapp
-
Set up a virtual environment
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies
pip install -r requirements.txt
-
Apply migrations
python manage.py migrate
-
Run the development server
python manage.py runserver
- Open your web browser and go to
http://127.0.0.1:8000
. - Enter the name of a city in the search bar.
- View the current weather, daily, and hourly forecasts for the selected city.
Home page where users can search for a city.
Weather results page showing current, daily, and hourly weather information.
- Django: Backend framework for Python.
- Bootstrap: Frontend framework for responsive design.
- HTML/CSS: Markup and styling.
- JavaScript: Interactivity on the client side.
- python-weather: API for fetching weather data.