점프 투 플라스크 2-04
flask db migrate를 입력한 뒤 리비전 파일도 생성된것 같은데 flask db upgrade를 입력하면 pybo.db가 생성이 되야 하는데 생성이 되질 않습니다
c:\venvs\myproject\lib\site-packages\flask_sqlalchemy__init__.py:851: UserWarning: Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. Defaulting SQLALCHEMY_DATABASE_URI to "sqlite:///:memory:".
warnings.warn(
c:\venvs\myproject\lib\site-packages\flask_sqlalchemy__init__.py:872: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
warnings.warn(FSADeprecationWarning(
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> a69b889f7944, empty message
ldy51001 님 581
2021년 7월 30일 2:10 오후
1개의 답변이 있습니다. 1 / 1 Page
2-04 에서 작성한 config.py 파일이 적용이 안된것 같습니다.
app.config.from_object(config)
이 코드에 누락되지 않았는지 확인해 보세요.
박응용 님
2021년 7월 30일 2:43 오후