Я отправляю запрос openweathermap для погоды, но он не может отправить его.
из django.shortcuts):
url = 'api.openweathermap.org/data/2.5/weather?q={}&units=imperial&appid=*************************'
city = 'lahore'
r = requests.get(url.format(city))
print(r.text)
return render(request,'weather/weather.html')
Неверный URL 'api.openweathermap.org/data/2.5/weather?q=lahore&units=imperial&appid=***************************** ': схема не указана.Возможно, вы имели в виду http://api.openweathermap.org/data/2.5/weather?q=lahore&units=imperial&appid=***********************?
Изображение ошибки