Python Forum
Flask tutorial errors in jinja, auth undefined - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Flask tutorial errors in jinja, auth undefined (/thread-18000.html)



Flask tutorial errors in jinja, auth undefined - Ecniv - May-02-2019

http://flask.pocoo.org/docs/1.0/tutorial/views/
Following this tutorial, slightly different due to the blue prints.
Hello world index works, but on auth/register jinja is complaining auth object is undefined. (From base.html). The py coding seems to have outputted the route correctly...
I'm on the mobile atm as no internet here atm.
What could be missing? Passing auth somehow?


RE: Flask tutorial errors in jinja, auth undefined - micseydel - May-03-2019

Can you please post the exact, full error message?


RE: Flask tutorial errors in jinja, auth undefined - Ecniv - May-03-2019

Hi, cannot now as I've updated the coding to a working state. Although using mysql instead of sqllite, and had to change the sqls.
Aldo took the auth.x out of the base.html. which solved the error (ok ignored it and stopped it but not working like in the tutorial)
I will mark as resolved and post about the next problem.