· 7 years ago · Jan 08, 2019, 02:40 AM
1AttributeError: 'NoneType' object has no attribute 'drivername'
2
3class Config:
4 SECRET_KEY = 'SECRET_KEY'
5 SQLALCHEMY_DATABASE_URI = 'SQLALCHEMY_DATABASE_URI'
6 MAIL_SERVER = 'smtp.googlemail.com'
7 MAIL_PORT = 587
8 MAIL_USE_TLS = True
9 MAIL_USERNAME = os.environ.get('EMAIL_USER')
10 MAIL_PASSWORD = os.environ.get('EMAIL_PASS')
11
12AttributeError: 'NoneType' object has no attribute 'drivername'
13
14sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such
15table: post [SQL: 'SELECT post.id AS post_id, post.title AS
16post_title, post.date_posted AS post_date_posted, post.content AS
17post_content, post.user_id AS post_user_id nFROM post ORDER BY
18post.date_posted DESCn LIMIT ? OFFSET ?'] [parameters: (5, 0)]
19(Background on this error at: http://sqlalche.me/e/e3q8)