SQLAlchemy (1) 썸네일형 리스트형 Flask-sqlalchemy "One or more mappers failed to initialize" 오류 One or more mappers failed to initialize - can't proceed with initialization of other mappers. Triggering mapper: 'mapped class User->user'. Original exception was: relationship 'tweets' expects a class or a mapper argument 라는 오류가 떴다. 읽어보니 매핑 관계에서 문제가 있었다. 해결책 1. 테이블 간의 관계 relationship을 꼼꼼하게 봐준다. 처음에 class Tweet(db.Model): __tablename__ = 'tweet' id = db.Column(db.Integer(), primary_key=True) te.. 이전 1 다음