Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Split app.py into multiple files #57

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

everypizza1
Copy link

@github-actions github-actions bot added the Python A PR that changes python files label Jan 15, 2025
@everypizza1
Copy link
Author

Alright, should be ready for review now.

@everypizza1 everypizza1 marked this pull request as ready for review January 17, 2025 04:25
@everypizza1 everypizza1 changed the title feat: Split app.py into multiple files [WIP] feat: Split app.py into multiple files Jan 24, 2025
@@ -375,29 +301,6 @@ def index_page():
return render_template('index.html', shorts=final_videos, session=session, logged_in = logged_in)
return explore_page()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace with return routes.feeds.explore_page()

@ProgramminCat
Copy link
Contributor

Looks like ALL the routes that are not inside app.py are not working and returning 404.

@ProgramminCat
Copy link
Contributor

Flask uses a concept of blueprints for making application components and supporting common patterns within an application or across applications.

Looks like "blueprints" are the way to go.

@ProgramminCat ProgramminCat marked this pull request as draft January 29, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Python A PR that changes python files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants