Closed Patelrahul4884 closed 4 years ago
utils.py
file.admin.py
and tests.py
for example).I told you to use the requests module, as it is a bit easier to do the fetching, but it's not the end of the world that you used urllib.
[x] However, we need the following returned from the function.
{
"weather": {
"celsius": float,
"fahrenheit": float,
},
"city": str,
"sunset": datetime,
"sunrise": datetime
}
[x] Please also remove your code block at the bottom after testing the functionallity for your file. It should not be pushed to the master branch.
add utils.py file in Weather app that fetches the weather using geo coordinate(latitude & longitude)