Guest User

Untitled

a guest
Jan 7th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. AttributeError: 'NoneType' object has no attribute 'drivername'
  2.  
  3. class 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.  
  12. AttributeError: 'NoneType' object has no attribute 'drivername'
  13.  
  14. sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such
  15. table: post [SQL: 'SELECT post.id AS post_id, post.title AS
  16. post_title, post.date_posted AS post_date_posted, post.content AS
  17. post_content, post.user_id AS post_user_id nFROM post ORDER BY
  18. post.date_posted DESCn LIMIT ? OFFSET ?'] [parameters: (5, 0)]
  19. (Background on this error at: http://sqlalche.me/e/e3q8)
Add Comment
Please, Sign In to add comment