Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Flask tutorial errors in jinja, auth undefined
#1
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?
Quote
#2
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 :)
Quote
#3
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.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Google calendar pthon flask auth Kireta 0 133 Sep-16-2019, 04:50 PM
Last Post: Kireta
  Flask tutorial: kintarowonders 1 757 Mar-27-2019, 07:37 PM
Last Post: nilamo
  flask sqlite jinja accessing and updating database help pascale 5 540 Feb-11-2019, 03:49 PM
Last Post: pascale
  display multiple sensors on webpage python flask jinja pascale 6 682 Jan-29-2019, 10:10 AM
Last Post: pascale
  Python /Flask Login with LDAP Auth pythonnubie 4 3,385 Apr-16-2018, 03:14 PM
Last Post: nilamo
  Uninitialized ASN.1 value in Flask LDAP3 Auth blueprint zoidberg 1 1,498 Nov-15-2017, 12:29 PM
Last Post: zoidberg

Forum Jump:


Users browsing this thread: 1 Guest(s)