The Weather App is a Django-based web application that provides weather information for various locations. Users can input a city name to retrieve the current weather conditions for that location.
- Search for current weather by city name.
- Display weather details such as temperature, humidity, and weather conditions.
- User-friendly interface with a responsive design.
- manage.py: Entry point for the Django project.
- weather/: Contains the main application code, including models, views, and templates.
- weather/templates/weather/weather.html: HTML template for displaying weather information.
- weather_project/settings.py: Configuration settings for the Django project.
- Python 3.13 or higher
- Django framework
- Clone the repository:
git clone https://github.com/your-username/weather-app.git
- Navigate to the project directory:
cd weather-app - Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- Install dependencies:
pip install -r requirements.txt
- Run migrations:
python manage.py migrate
- Start the development server:
python manage.py runserver
- Open your web browser and navigate to
http://127.0.0.1:8000/. - Enter the name of a city to get the current weather information.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature-name
- Commit your changes:
git commit -m "Description of changes" - Push to your branch:
git push origin feature-name
- Open a pull request.
- Django Documentation
- OpenWeatherMap API for providing weather data.