Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove db creation from app.py file in favor of migrations#145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

LUS24
Copy link
Contributor

No description provided.

@vercelVercel
Copy link

vercelbot commentedFeb 8, 2024
edited
Loading

The latest updates on your projects. Learn more aboutVercel for Git ↗︎

NameStatusPreviewCommentsUpdated (UTC)
rest-apis-flask-python✅ Ready (Inspect)Visit Preview💬Add feedbackFeb 8, 2024 8:00am

@jslvtr
Copy link
Contributor

Thanks@LUS24! I think there might be a few more places to remove the code, some lectures in section 12 still have the obsolete code 🤔

@LUS24
Copy link
ContributorAuthor

Thanks@LUS24! I think there might be a few more places to remove the code, some lectures in section 12 still have the obsolete code 🤔

I didn't find any references beyond section 9:

......docs\docs\08_flask_jwt_extended\12_token_refreshing_flask_jwt_extended\start\conftest.py:  24  def jwt(app):  25:     with app.app_context():  26:   26          access_token = create_access_token(identity=1)  31  def admin_jwt(app):  32:     with app.app_context():  33:   33          access_token = create_access_token(docs\docs\09_flask_migrate\02_add_flask_migrate_to_app\README.md:  35    36: with app.app_context():  37:   37      db.create_all()  44  ```py  45: with app.app_context():  46:   46      db.create_all()docs\docs\09_flask_migrate\02_add_flask_migrate_to_app\start\app.py:  94    95:     with app.app_context():  96:         import models  # noqa: F401  97

That last appearance is the one that instructs students to remove it in favor of the migrations.

Have you seen that code in some other file that I've missed?

@jslvtrjslvtr merged commit998635f intotecladocode:developApr 4, 2024
@jslvtrjslvtr mentioned this pull requestJun 21, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@LUS24@jslvtr

[8]ページ先頭

©2009-2025 Movatter.jp