Bottom Page

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.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  how to create dynamic arguments to be passed in jinja template in url_for function? experimental 1 402 May-01-2020, 05:50 PM
Last Post: Larz60+
  Google calendar pthon flask auth Kireta 0 405 Sep-16-2019, 04:50 PM
Last Post: Kireta
  Flask tutorial: kintarowonders 1 1,434 Mar-27-2019, 07:37 PM
Last Post: nilamo
  Problem enabling http auth in a route nikos 2 637 Mar-02-2019, 01:13 PM
Last Post: nikos
  flask sqlite jinja accessing and updating database help pascale 5 889 Feb-11-2019, 03:49 PM
Last Post: pascale
  display multiple sensors on webpage python flask jinja pascale 6 1,278 Jan-29-2019, 10:10 AM
Last Post: pascale
  Python /Flask Login with LDAP Auth pythonnubie 4 4,397 Apr-16-2018, 03:14 PM
Last Post: nilamo
  Uninitialized ASN.1 value in Flask LDAP3 Auth blueprint zoidberg 1 1,866 Nov-15-2017, 12:29 PM
Last Post: zoidberg

Forum Jump:

Users browsing this thread: 1 Guest(s)