Nice video. Like that you "included" some errors and debugging :)
@prettyprinted
5 жыл бұрын
haha it's more educational and it saves time on editing.
@tusharverma2212
6 жыл бұрын
for better understanding of json objects and array you can use the json viewer extension
@prettyprinted
6 жыл бұрын
I'll check it out, thanks.
@woltron4o
4 жыл бұрын
Thanks nice video. This is my first flask tutorial from your videos that I made. it's nice. :)
@VinayKumar-dc5qg
4 жыл бұрын
Excellent tutorial
@puurusottamsaha8971
4 жыл бұрын
really nice explanation ..Thanks a lot
@townheadbluesboy
6 жыл бұрын
Very clear and helpful - thanks
@prettyprinted
6 жыл бұрын
Thanks for watching!
@mukammedalimbet2351
4 жыл бұрын
Thanks for making such an amazing tutorial, however I have a question, When database get created, why tables were created for name exactly 'city'?, did you define it somehow? because as I understand the model was for City with capital C but not city
@사공용협
4 жыл бұрын
Thanks for your tutorial! I have some question about requests.get() function. When I use >>>flask.request.form.get(url.format(city)), it's not working.(it comes 'None' data) What is the problem?
@dmc549
5 жыл бұрын
Great tutorial. Subscribed.
@prettyprinted
5 жыл бұрын
Thanks for watching and for subscribing!
@kelvinanku-etu2839
6 жыл бұрын
Love your tutorials. Anything for us kivy??
@richarddankwah3088
2 жыл бұрын
Everything in the Vedio is perfect, But we need an update where the App can automatically Record the DATE, TIME, DAY, WIND, HUMIDITY, VISIBILITY, PRESSURE, TEMPERATURE, LONGITUDE AND LATITUDE CORDINATE OF THE CITY into a DataBase for about a Year records when you can retrieve as CSV or Json file by clicking a button and use for your Personal Project on weather data. Thank you.
@leustad
6 жыл бұрын
Keep them coming. Very good !! I know you are following what you did with Django but maybe you might wanna mention about using cookies for cities rather than using a DB for this simple project. Just a though.
@prettyprinted
6 жыл бұрын
That's a good idea. I'll consider it for a video.
@leustad
6 жыл бұрын
I'm not trying to backseat drive your videos, hope you are not taking this in that way. I like your videos, I was simply trying to say what I would do. BTW, we want more of these videos :)
@fruitfcker5351
6 жыл бұрын
Hey man, love your Python Bottle videos. Any chance you'll do Falcon as well? Just subscribed.
@prettyprinted
6 жыл бұрын
I'll consider Falcon. Thanks for watching!
@AbhishekKumar-mq1tt
6 жыл бұрын
Thank u for this awesome video
@prettyprinted
6 жыл бұрын
Thank you for watching.
@zsoltszakal6893
3 жыл бұрын
It would have been nice to include the starter weather.html....
@ericsclafani9425
Жыл бұрын
Exactly what I was thinking
@everythinginpython3327
5 жыл бұрын
The weather widget part is not showing up. Neither on chrome nor on firefox
@prettyprinted
5 жыл бұрын
I'll have to look into to see if anything has changed. Thanks for letting me know.
@sahanabpradhyumna
5 жыл бұрын
@@prettyprinted Yes, even I m facing the same. The JSON data is displaying in the console but it is not showing in the browser. Whereas when I give the data as static data also, it is not coming but when I load the HTML page as a file path that time is showing. Please update. Flask version I m using is 1.0.2.
@oyajitricker
4 жыл бұрын
Fantastic Video, I am learning alot! So I did some debugging and the jinja syntax must have changed. I deleted all the jinja references, removed the dict from app.py and ran it. the widget popped right up. Also I updated bulma.css to the latest version. Hope this helps!
@prodsefv
4 жыл бұрын
nice video
@SunriseBusinessClub
4 жыл бұрын
Why you write the code like this? 'temperature': r['main']['temp'], 'description': r['weather'][0]['description'], Where u get it from, I don't understand
@NIKHITAGARGBCE
2 жыл бұрын
'sqlite3' is not recognized as an internal or external command, operable program or batch file.
@vaishnavibhosale2272
Жыл бұрын
do you have a weather forecast project report
@nikhileswar915
3 жыл бұрын
url for open weather app api is not same as in video and description, please help me out
@riskcatriax
3 жыл бұрын
when i try to import db from app.. No module named 'app' shows up what to do?
@rakeshreddy1365
3 жыл бұрын
>>> from app import db Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'db' from 'app' (C:\Users\HP\Desktop\WEATHER_APP\app.py)
@ajaykushwaha6137
5 жыл бұрын
Hey, Thanks for posting such detailed and meaningful videos. I really appreciate this effort and service of yours. I went through the tutorial it worked fine for a while, but later it started giving me an internal server error with a message in the Browser: Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application. Also there in the console screen it displays : ERROR in app: Exception on / [GET] Really tried debugging this error, didn't get any luck........can Help?
@prettyprinted
5 жыл бұрын
That's not enough information. It could be anything. Try putting your app into debug mode.
@mxd8
5 жыл бұрын
I get a weird error at 13 min mark when trying to {% include 'weather.html' %} in my index file, [separate routes, my weather route is not the same as the index route] -> jinja2.exceptions.UndefinedError: 'weather' is undefined, can't seem to solve issue, any ideas? thanks!
@prettyprinted
5 жыл бұрын
make sure the weather variable is passed through your context
@YASHDEWANGAN
4 жыл бұрын
hey , sqlite3 .db is not working on VS code plz. help me
@jimchrist-x
4 жыл бұрын
what's the output?
@chinmayeehota216
5 жыл бұрын
How would it update the weather, even when you are not refreshing the page manually, like by constantly polling data from API?
@prettyprinted
5 жыл бұрын
You'd have to use some JavaScript for that. It's pretty easy to do if you have experience with JavaScript, but it's hard to explain here.
@jimchrist-x
4 жыл бұрын
@@prettyprinted I believe you can also use a meta tag that refreshes the webpage
@kritikaberry5056
4 жыл бұрын
Hey, why do we use units=imperial in the url, while in api documentation , it has not been mentioned
@satvikgs5855
3 жыл бұрын
i jus looked it in their documentation its optional tho..if you dont use you would get it in celsius.
@canMan656
5 жыл бұрын
Hello sir, I have been following your tutorials on django and flask for some times now...I have followed this one all alongbut it seems like I have issues to create the able model city inside the database everytime I tried to add new data in the city table It shows "no such table:city " which means that the city is not inside the weather.db.I just don't know what to do,I have watched your video like 4,5 times but it seems like I am missing something...thank you!
@jimchrist-x
4 жыл бұрын
Try using sqlite3 module instead. I believe it is faster and easier
@SunriseBusinessClub
4 жыл бұрын
What is r['main'] what r means? Where u took it from?
@jimchrist-x
4 жыл бұрын
r is the connection he makes to the weathermap api. Now if you have some knowledge of lists, json files you can get the specific data that you may want. What he does is r returns huge list ['main'] data for weather he wants to take. This comment is 3 months old so you might already know :)
@shivamkapoor1827
5 жыл бұрын
22:04 What is the working of request.form.get ('city')
@rohan1765
4 жыл бұрын
To get the value from the input we are having in the browser ( the city name ) and getting it here in flask's main.py.
@vaishnavi4354
4 жыл бұрын
Hello Actually when I added the api then it shows the error that keyerror "main".Means is shows the error in the line 'temprature':r['main']['temp'] Plz help me to re solve this keyerror
@prettyprinted
4 жыл бұрын
Check out the part 2 video.
@vaishnavi4354
4 жыл бұрын
@@prettyprinted Thanks a lot 👍👍
@nits_koh
5 жыл бұрын
Can I run flask on github pages?
@VishalKumar-gf8fr
6 жыл бұрын
sir temperature is not accurate...can you please check this....
@justinventuro2558
5 жыл бұрын
I am getting all of the correct json data, but the box with all the weather data on the website is not showing up. I am using pycharm, why is this???
@prettyprinted
5 жыл бұрын
It's hard to say without seeing your code. Did you save the template in the correct place?
@justinventuro2558
5 жыл бұрын
@@prettyprinted Thank you for the Reply!!!! this is my first attempt at web dev so I am trying to get the app to run without SQLalchemy first. I just saved the html temp into templates in Pycharm. would there be modifications I have to do to the HTML temp (sorry, I understand the python and the Json, but not the html too well) to get the box with the weather to show
@justinventuro2558
5 жыл бұрын
reversed engineered your video and figured out it was the loop, it works now. But I really appreciate the fact you reply to your viewers so for that you will get a subscription!!!
@prettyprinted
5 жыл бұрын
@@justinventuro2558 Glad you figured it out!
@bwalshstudent
6 жыл бұрын
when I try: from flask_sqlalchemy import SQLAlchemy it gives me an error that flask_sqlalchemy is undefined even though I pip installed it and it says that it is there. Any recommendations?
@prettyprinted
6 жыл бұрын
Are you sure it's install in the environment you're using to run the code?
@bwalshstudent
6 жыл бұрын
Pretty Printed yeah: I imported all my other libraries there. The app runs and works, it just in my VSCode editor gives me the error. Should I just ignore it if it works?
@prettyprinted
6 жыл бұрын
Yeah, I'd just ignore it.
@sammwangi7565
6 жыл бұрын
make a virtual environment and run it from there `virtualenv venv` later navigate into it by typing `source venv/Scripts/activate` and then later pip install the packages
@technicalilm8999
6 жыл бұрын
how can it be uploaded to python anywhere, im having problem in connecting to database
@prettyprinted
6 жыл бұрын
I'd have to know the specific problem.
@uditmittal67
6 жыл бұрын
Ironic how you didn't use pprint module for viewing JSON results xD
@prettyprinted
6 жыл бұрын
I always forget that it exists. And I'm the last person who should forget about it.
@ahmeddanial1342
2 жыл бұрын
How do we hide an api key?
@desheen5056
6 жыл бұрын
i love your channel and your videos :) , but can you take a look at python falcon, and show it some love :) ?
@prettyprinted
6 жыл бұрын
I'll consider Falcon.
@akramelomrani8728
4 жыл бұрын
Help please the image do not want to display
@Feng-fw2qy
7 ай бұрын
Me too. Any way to solve?
@El-barto1
Жыл бұрын
how to get the api it aint free?
@prettyprinted
Жыл бұрын
You should still be at to get a free API by going to openweathermap.org
@IsItTimeToTravel
6 жыл бұрын
Good Job. Now how can we make these cities auto update themselves ?
@ankushsarkar1746
6 жыл бұрын
Every time u visit the web site it will get the weather from the api so it gets updated. He did not store the weather in the data base.
@jimchrist-x
4 жыл бұрын
@@ankushsarkar1746 maybe what he was trying to say was how to refresh the page automatically. For this you must use database or else use the meta tag for auto refresh in your html file.
@lilredbb2182
5 жыл бұрын
i cant do this in windows,,,,,,,sad
@natalieandrade1558
3 жыл бұрын
sqlite3 weather.db????
@owaisahmed7952
4 жыл бұрын
At 14:09 its nullable=False
@Shortsodia1
2 жыл бұрын
Why you guys making video.did you check back your video quality . nothing showing in clear . disgusting
Пікірлер: 94