Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Flask] No application found.
#2
If it helps, I get a different error from the website, the error I named above is when i try to query Post from the website debugger. The error I get is -
AttributeError: 'NoneType' object has no attribute 'drivername'
The last lines of code are -
The default implementation provides some saner defaults for things
        like pool sizes for MySQL and sqlite.  Also it injects the setting of
        `SQLALCHEMY_NATIVE_UNICODE`.
        """
        if sa_url.drivername.startswith('mysql'): #This line gives the error
            sa_url.query.setdefault('charset', 'utf8')
            if sa_url.drivername != 'mysql+gaerdbms':
                options.setdefault('pool_size', 10)
                options.setdefault('pool_recycle', 7200)
        elif sa_url.drivername == 'sqlite':

I tried deleting my database and then running "db.create_all()" but I got the same error - "No application found"

I'm thinking I will just start over
Reply


Messages In This Thread
[Flask] No application found. - by SheeppOSU - May-31-2019, 09:36 PM
RE: [Flask] No application found. - by SheeppOSU - Jun-01-2019, 02:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask migrate sqlalchemy not found TomasAm 2 3,519 Dec-01-2020, 10:04 AM
Last Post: TomasAm
  General advice web application - flask - database - cms bashage 6 4,723 Jan-31-2018, 06:07 PM
Last Post: frostbite

Forum Jump:

User Panel Messages

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