Python Forum

Full Version: Flask tutorial errors in jinja, auth undefined
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Can you please post the exact, full error message?
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.