Flask Tutorial Web Development with Python 9 - Error Handling

Flask Tutorial Web Development with Python 9 - Error Handling

sentdex

9 лет назад

27,565 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@MyPetline
@MyPetline - 05.05.2019 12:57

pls. try to fix 413 error

Ответить
@penumarthinlgvsvamsi8730
@penumarthinlgvsvamsi8730 - 20.01.2019 07:57

what does the value carried by "e" parameter in page_not_found

Ответить
@arjunbemarkar7414
@arjunbemarkar7414 - 11.01.2019 07:00

why not put the try except in the if _name_ == "__main__" thing?

Ответить
@neeldeshmukh3705
@neeldeshmukh3705 - 20.09.2018 10:08

Where's the jacket??

Ответить
@joeg816
@joeg816 - 13.04.2017 00:16

Instead of hard coding href links, I think best practice is to use Jinja's url_for just in case the URLs change.

Ответить
@rafiklmd9822
@rafiklmd9822 - 27.11.2016 02:13

Hi Harrison, great tutorial.
i have a very annoying problem, i'm trying to build my website in french. but when i write words with special characters (like é or è), i get a ""UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 1482: invalid continuation byte"".
i also added # -*- coding: utf-8 -*- in the top of every file, but it did not solve the problem.
please help me.

Ответить
@dimashur
@dimashur - 22.09.2016 18:20

are you simply copy/pasting stuff from Miguel's tutorial?

Ответить
@mohitjain7925
@mohitjain7925 - 25.02.2016 16:59

hey Great video, quick question, when i put a tab space behind try statement it throws an error, but when i put four spaces it works? DO you know why that might be happening because i have used tab for indentation in python all the time

Ответить
@Arslanqadri
@Arslanqadri - 13.02.2016 22:57

it is possible to log the errors in an error file concurrently?

Ответить
@Veri7a
@Veri7a - 15.12.2015 08:47

I am guessing the reason you would have problems consistently getting your 500.html is because 500 is a Server error as opposed to a page error with a 404. If the server is having problems accessing your templates location i doubt it would be able to render the 500.html. My idea anyway.

Ответить
@jd5787
@jd5787 - 23.08.2015 13:49

Just wondering: is it possible (and advisable) to have a single html page dealing with all types of html/server errors? (in which case, a function in the _init_ file would have a few if statements to classify the error and the error message would have to be passed to the HTML to Jinja via a variable. what do you think?

Ответить
@brahimelboudani601
@brahimelboudani601 - 20.04.2015 14:14

Great work sentdex please keep it up

Ответить
@GeneAiello
@GeneAiello - 09.04.2015 22:11

Harrison,
Again great tutorial. You should look into the Flask Debug flag/option, for your development environment. I believe this is why you could never get back helpful errors.
eg.  app.run(host="0.0.0.0", debug=True)

Also, If you enable debug the server will reload itself on code changes automatically!

Ответить
@darronpressley6855
@darronpressley6855 - 27.03.2015 22:16

Hi Harrison

Do you do anything fancy to help search engines find your websites?....egI have read about using schema but it just looks annoying :)

Ответить