This weather application is built using Django, requests and openweathermap, here users can get weather information by entering the city name
api_key is required to run this project, to get api_key follow the below steps
- Create an account in openweathermap.org
- After creating account click here to go to openweathermap api_keys section here you can generate a new
api_keyor stick with defaultapi_key
Clone the project
git clone https://github.com/Shivakumar1V/Django-Weather-ApplicationInstall dependencies
pip install -r requirements.txt- Now open
views.pyfile which is inhome/views.pyand enter your openweathermapapi_keyinapi_key = "your api_key"section and save the file
Run the below commands
python manage.py makemigrations
python manage.py migrateStart the server
python manage.py runserverIt will run the application on http://127.0.0.1:8000/
Yeah! Now the application is ready to use
Open your browser and go to http://127.0.0.1:8000/ and enjoy the application