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
#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?
Reply
#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 :)
Reply
#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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python 3.7 on windows using flask and flask-sqlalchemy. Alpy 2 1,703 Aug-12-2020, 07:24 PM
Last Post: Alpy
  Jinja sort values from request.form SpongeB0B 2 283 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 682 May-01-2020, 05:50 PM
Last Post: Larz60+
  Google calendar pthon flask auth Kireta 0 612 Sep-16-2019, 04:50 PM
Last Post: Kireta
  Flask tutorial: kintarowonders 1 1,846 Mar-27-2019, 07:37 PM
Last Post: nilamo
  Problem enabling http auth in a route nikos 2 850 Mar-02-2019, 01:13 PM
Last Post: nikos
  flask sqlite jinja accessing and updating database help pascale 5 1,167 Feb-11-2019, 03:49 PM
Last Post: pascale
  display multiple sensors on webpage python flask jinja pascale 6 1,726 Jan-29-2019, 10:10 AM
Last Post: pascale
  Python /Flask Login with LDAP Auth pythonnubie 4 5,022 Apr-16-2018, 03:14 PM
Last Post: nilamo
  Uninitialized ASN.1 value in Flask LDAP3 Auth blueprint zoidberg 1 2,167 Nov-15-2017, 12:29 PM
Last Post: zoidberg

Forum Jump:

User Panel Messages

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