Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flask: instance config not loaded
#3
I think
session = reflect_all_tables_to_declarative(SQLALCHEMY_DATABASE_URI)
should be
session = reflect_all_tables_to_declarative(app.config.get('SQLALCHEMY_DATABASE_URI'))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
flask: instance config not loaded - by wardancer84 - Jan-28-2019, 02:04 PM
RE: flask: instance config not loaded - by buran - Jan-29-2019, 11:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Solved] Browser won't parse text from yaml loaded into Jinja SpongeB0B 1 1,118 Jul-07-2022, 09:37 PM
Last Post: SpongeB0B

Forum Jump:

User Panel Messages

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