Professional Weather App with Django in Python

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 73

  • @sarthakpandey8605
    @sarthakpandey8605 Год назад +38

    My Code is not running after copying all steps.......worst.....key value / ''daily'' error occured.
    If you have the same error ....give me thumb up

    • @btanemba
      @btanemba 8 месяцев назад +2

      I'm also getting the Daily error. Don't know how to fix that

    • @user-qw3is5eg5l
      @user-qw3is5eg5l 6 месяцев назад +3

      I had such a mistake and I fixed it right now. In fact, the problem is that the free subscription does not allow you to watch the daily forecast. if you erase all mentions of the daily forecast, the code will work

    • @aryamanbandhu
      @aryamanbandhu 5 месяцев назад

      @@user-qw3is5eg5l I am a garbage human being

    • @aryamanbandhu
      @aryamanbandhu 5 месяцев назад

      @@user-qw3is5eg5l Thank you so much! I've been struggling to make the code work

    • @pranavM40
      @pranavM40 4 месяца назад

      ​@@user-qw3is5eg5l How to fix this mistake please explain because I also have the same problem.

  • @style1708
    @style1708 Год назад +16

    Hey if you can, please show how creating real API (prefer fastapi as framework) and connecting it with frontend looks like, if you could also show how to deploy that. Thank you.

  • @shyamananth
    @shyamananth Год назад +1

    Your Channel is the most informative and Fascinating tech content.. Cant quantify how much I have enjoyed and learned your content .. Love you mate.. You are just awesome

  • @nocopyrightgameplaystockvi231
    @nocopyrightgameplaystockvi231 Год назад +4

    Thanks for this. Bring more Django tutorials, your explanation is stellar.

  • @theblackariel5957
    @theblackariel5957 4 месяца назад +1

    This code doesnt work as Open weather app no longer provides daily weather data for free.

  • @njcoder2641
    @njcoder2641 11 месяцев назад +2

    hey the onecall api is paid we aren't able to use it

  • @vishnurajcr2462
    @vishnurajcr2462 Год назад +6

    KeyError at /
    'coord' does anyone caught this error

    • @chetty1212
      @chetty1212 Год назад

      did you resolve this error? thats what im getting as well

    • @ahmedtariq2460
      @ahmedtariq2460 Год назад

      I'm also getting an error for 'coord' have you been able to find the solution?

    • @rahuldey5564
      @rahuldey5564 7 месяцев назад +1

      your API_KEY has a newline character (
      ) remove it

    • @user-qw3is5eg5l
      @user-qw3is5eg5l 6 месяцев назад

      I had such a mistake and I fixed it right now. In fact, the problem is that the free subscription does not allow you to watch the daily forecast. if you erase all mentions of the daily forecast, the code will work

    • @midnight1337.
      @midnight1337. 6 месяцев назад

      ​@@rahuldey5564 I was trying to troubleshoot why I'm getting 401 error while trying to call a response even when my api url worked just fine. I checked my API_KEY file and i had new line in there. Thank you, this saved me

  • @utkarshpatil
    @utkarshpatil Год назад +1

    what if the user input something else..like not a city name,then it would show error. How do you takle this error

  • @yiannisnik-ew2hs
    @yiannisnik-ew2hs Год назад +1

    Excellent work thanks.Any ideas how to display data dynamic in our website using Django?I think it should be in while loop while fetching data from API with sleep time in between

  • @akshaykumardubey1258
    @akshaykumardubey1258 9 месяцев назад +3

    Hello @NeuralNine i am actually stuck at a point where it says KeyError at/ daily while calling daily from the forecast_url i have tried everything but i am not able to get the solution please can u explain how to do this

    • @raypamber
      @raypamber 9 месяцев назад +2

      you have to pay to use daily api.

  • @ke012685
    @ke012685 Год назад

    Thanks for the tutorial, it's very helpful.

  • @redblues9566
    @redblues9566 Месяц назад

    Very Thanks.

  • @mehranaliyari9866
    @mehranaliyari9866 Год назад

    My problem is that when I call my management folder, it says that there is no such folder. I searched Stackoverflow and found the answer, but it was for Linux, I don't know how to fix the answer in Windows. I have this issue in other parts of the program, but when I look, the other parts are also formed. Please help me, what he wrote seems to be not path correct, I could not translate the codes to windows cmd codes

  • @raphaelowono
    @raphaelowono Год назад +5

    I am getting KeyError type 'daily'
    for daily_data in forecast_response['daily'][:5]:

  • @juanmacias5922
    @juanmacias5922 Год назад

    I was today years old when I found out html can accept if conditions lol I thought that was a Vue thing xD btw, open weather accepts units, you didn't have to convert it to Celsius yourself.

  • @user-rn6sy6cz7e
    @user-rn6sy6cz7e 10 месяцев назад +2

    I get
    KeyError at /
    'coord'
    any ideas how to fix it?

    • @Tidestomper
      @Tidestomper 10 месяцев назад

      same for me even thou I tried writing it my own way or copying it from github its still the same.
      KeyError at /weather_app/
      "'coord' key not found in the current weather response."

    • @mohdtalha7323
      @mohdtalha7323 10 месяцев назад +1

      @user-rn6sy6cz7e @@Tidestomper did u guys solve it?? coz Im facing the same issue

    • @user-qw3is5eg5l
      @user-qw3is5eg5l 6 месяцев назад

      I had such a mistake and I fixed it right now. In fact, the problem is that the free subscription does not allow you to watch the daily forecast. if you erase all mentions of the daily forecast, the code will work

  • @paldeflex
    @paldeflex 4 месяца назад +3

    I spent 2 hours on code that doesn't work and you didn't even post anything about it in the comments @NeuralNine

  • @isojama1
    @isojama1 Год назад

    Nice video as always. Just wondering how you get double {{ }} or the double % in the html file? Is it because of tabnine extension or something else?

    • @MrM1Gu
      @MrM1Gu Год назад

      It's Jinja notations that implements raw code in html

  • @BubblyVFX
    @BubblyVFX Год назад

    Do you need Pycharm professional for this?

  • @zachfenton608
    @zachfenton608 Год назад

    Vielen Dank, es gibt einen Fehler wenn ich nur Stadt zwei eingebe. Was soll ich tun?

  • @Rex_ults
    @Rex_ults 9 месяцев назад

    What about the try and except?

  • @BANIAAAAK
    @BANIAAAAK Год назад +4

    Dang too complicated for now, Need to level up on DJANGO first

  • @Apurva828
    @Apurva828 Год назад +3

    Please resolve this KeyError type "daily"

    • @venkateshbonasi8687
      @venkateshbonasi8687 9 месяцев назад

      Have you solved it broo

    • @user-qw3is5eg5l
      @user-qw3is5eg5l 6 месяцев назад

      I had such a mistake and I fixed it right now. In fact, the problem is that the free subscription does not allow you to watch the daily forecast. if you erase all mentions of the daily forecast, the code will work

    • @theblackariel5957
      @theblackariel5957 4 месяца назад

      @@user-qw3is5eg5l how do i do that?

  • @btanemba
    @btanemba 8 месяцев назад

    Has anyone tried this code recently? I'm getting error.. Even copied everything still an Error

  • @kelvinbethrand8914
    @kelvinbethrand8914 11 месяцев назад

    Does newyork works?

  • @RonitPatel-un3rt
    @RonitPatel-un3rt Год назад

    I got received error code 401 with message invalid API key but i following the proper still i getting the same error can someone explain me why it is happened

  • @alistairmontgomery7300
    @alistairmontgomery7300 8 месяцев назад

    Im getting a key error, is it due to the API?

    • @alistairmontgomery7300
      @alistairmontgomery7300 8 месяцев назад +2

      I did some research and it is due to the API, the free plan you get no longer works for this

  • @kodeypatterson8973
    @kodeypatterson8973 Год назад

    Cooool

  • @dpduy4625
    @dpduy4625 11 месяцев назад

    i managed to finish the project, i dont know how he able to do this project w a tons of short cut hahah, dm for more

    • @nelson9418
      @nelson9418 11 месяцев назад

      is what he showed no enough to finish the project?

  • @ahoymatey1234
    @ahoymatey1234 Год назад

    I'm following the tutorial but when I get to the first time where we check the html rendering I see this below my input boxes "{% include 'weather_app/city_weather.html' with weather_data=weather_data1 daily_forecasts=daily_forecasts1 %}
    {% include 'weather_app/city_weather.html' with weather_data=weather_data2 daily_forecasts=daily_forecasts2 %}"
    Any idea why it's printing it like this instead of rendering the output? It looks like the css also doesn't load as well this has a 404

    • @ahoymatey1234
      @ahoymatey1234 Год назад

      I know what is wrong so if anyone else has an autoformatter like prettier somehow django gets messed up with this

  • @anitha12_8
    @anitha12_8 3 месяца назад

    not beginner friendly