Python Forum
Flask tutorial errors in jinja, auth undefined
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flask tutorial errors in jinja, auth undefined
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?
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)
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.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Jinja sort values from request.form SpongeB0B 2 602 Jul-26-2020, 07:41 AM
Last Post: SpongeB0B
  how to create dynamic arguments to be passed in jinja template in url_for function? experimental 1 987 May-01-2020, 05:50 PM
Last Post: Larz60+
  Google calendar pthon flask auth Kireta 0 835 Sep-16-2019, 04:50 PM
Last Post: Kireta
  Flask tutorial: kintarowonders 1 2,385 Mar-27-2019, 07:37 PM
Last Post: nilamo
  Problem enabling http auth in a route nikos 2 1,198 Mar-02-2019, 01:13 PM
Last Post: nikos
  flask sqlite jinja accessing and updating database help pascale 5 1,688 Feb-11-2019, 03:49 PM
Last Post: pascale
  display multiple sensors on webpage python flask jinja pascale 6 2,426 Jan-29-2019, 10:10 AM
Last Post: pascale
  Python /Flask Login with LDAP Auth pythonnubie 4 6,151 Apr-16-2018, 03:14 PM
Last Post: nilamo
  Uninitialized ASN.1 value in Flask LDAP3 Auth blueprint zoidberg 1 2,522 Nov-15-2017, 12:29 PM
Last Post: zoidberg

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020