Комментарии:
pls. try to fix 413 error
Ответитьwhat does the value carried by "e" parameter in page_not_found
Ответитьwhy not put the try except in the if _name_ == "__main__" thing?
ОтветитьWhere's the jacket??
ОтветитьInstead of hard coding href links, I think best practice is to use Jinja's url_for just in case the URLs change.
Ответить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.
are you simply copy/pasting stuff from Miguel's tutorial?
Ответить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
Ответитьit is possible to log the errors in an error file concurrently?
Ответить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.
Ответить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?
ОтветитьGreat work sentdex please keep it up
Ответить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!
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 :)