Weatherpedia is a Django web application that provides weather forecasts and analysis for different cities.
- Home: Displays the home page with basic information.
- Forecast: Provides weather forecasts for various cities.
- About Us: Information about the project and its contributors.
- Hot and Cold Cities: Shows the hottest and coldest cities.
To run this project locally:
-
Clone the repository: git clone https://github.com/sangrambhise/weather website.git cd weather
-
Install dependencies: pip install -r requirements.txt
-
Apply database migrations: python manage.py migrate
-
Load initial data (if any): python manage.py loaddata <kanpur.csv>
-
Replace API Key: Enter you OpenWeatherMap API Key in "api_key" in views.py and in front of "app_id=" in index.py
-
Run the development server: python manage.py runserver
-
Open your browser and go to http://127.0.0.1:8000/ to see the web application.
Navigate to http://127.0.0.1:8000/ to access the Weatherpedia application. Explore different pages like Home, Forecast, About Us, and Hot and Cold Cities. Home Page: Navigate to the home page to get an overview of the project. Prediction Page: Go to the prediction page to view weather predictions using Random Forest. Top Cities Page: View the top hottest and coldest cities using the navigation.
Django HTML/CSS Bootstrap
Contributions are welcome! Please follow these steps to contribute:
- Fork the project.
- Create your feature branch (git checkout -b feature/AmazingFeature).
- Commit your changes (git commit -m 'Add some AmazingFeature').
- Push to the branch (git push origin feature/AmazingFeature).
- Open a pull request.
weather_project/: This is the root directory of your Django project.
weather_app/: This is your Django app directory.
migrations/: Contains database migration files.
static/: Directory for static files like CSS, JavaScript, and images.
css/: CSS files.
js/: JavaScript files.
img/: Image files.
templates/: Directory for HTML templates.
weather_app/: App-specific templates.
init.py: Initializes the app as a Python module.
admin.py: Django admin configuration.
apps.py: App configuration.
models.py: Django models for the app.
tests.py: Test cases for the app.
urls.py: URL configuration for the app.
views.py: Views (controllers) for the app.
manage.py: Django's command-line utility for administrative tasks.
README.md: Markdown file containing project information.
requirements.txt: List of Python packages required by the project.
.gitignore: Git ignore file to exclude certain files and directories from version control.
www.linkedin.com/in/sangram-baban-bhise-998067223 Project Link: https://github.com/sangrambhise/Weather-Website
This project is licensed under the MIT License - see the LICENSE file for details.