Комментарии:
@Codemy
I am new using flask, with your sessions, i am getting well along, but the Migration have been giving me migraine. I have been running into this error:
Usage: flask [OPTIONS] COMMAND [ARGS]...
Try 'flask --help' for help.
Error: No such command 'db'.
(VIRTUAL1) C:\Users\dell\Desktop\FLASK_B>
Please i need your assistance on this
Only I think that this guy needs millions of likes and subscribers?
ОтветитьOutstanding, thank you.
ОтветитьMigration was giving me a migraine...this helped massively!!!
ОтветитьNot sure if this will help anyone else, but I had to use the following commands in VS Code:
- Instead of flask db init / I used flask --app=hello db init (there are two hyphens in front of app)
- Instead of flask db / I used flask --app=hello db
- and so on.....
I'm not sure if I'm doing something wrong, but this worked for me.......
This whole fucking tutorial has helped me bring an application to life, but this one in particular really saved my hide. Thanks!
ОтветитьUsing this replaces the need to create a schema.sql file and updating it as I'm adding to the db. Right?
The SQLAlchemy and flask_migrate libraries are creating the schema for me in the background.
Also, while not causing me an error, when I a import flask_migrate, I get this warning message: Import "flask_migrate" could not be resolved from sourcePylancereportMissingModuleSource)
Not sure why. I followed the same steps as you. Is it because I am using different versions of everything?
In memory database? Adding flask migrate to existing project is a different process as shown in extention author's Miguel video.
ОтветитьYou need to run `flask db upgrade` right after `flask db migrate -m '...'` for this to work properly. Thanks for great tutorial!
ОтветитьThis is hilarious, I can't believe this worked.
Ответитьthanks, mine is saying command flask not found when i run flask db init. help please
ОтветитьI have to point out that flask db migrate will not work if the SQLalchemy model inherits "Base". Using flask-migrate with declarative base instead of db.model did not work for me. Once I got rid of declarative base it worked.
Thanks for making this video!
Thank you so much
ОтветитьThank you! I so lik Flask Friday!
Ответитьfantastic tutorial! Thank you!
Ответитьamazing, thank's
Ответитьhi sir wheni try to migrate in flask or try to run flask run/flask db init or anything related to migration im getting value error : entry points must be listed in groups pls help me with this.
ОтветитьThanks for portuguese subtitles
Ответитьthanks you!
Ответить$ flask db migrate -m 'initial migration'
d:\websites\flask_2\virtual\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 MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
ERROR [flask_migrate] Error: Can't locate revision identified by '4c48abc2c62b'
can't run
migration command is not working. i used workbench to create the field password_hash.any problem?
ОтветитьHeard of Svelte? I guess you would be a great person to learn Svelte from :)
ОтветитьGreat Sir!!
ОтветитьAfter A long Time 🔥 Flask 😎😎
Ответить