Chocolate icon indicating copy to clipboard operation
Chocolate copied to clipboard

Break up app.py

Open AtomsForPeace opened this issue 2 years ago • 6 comments

As mentioned in https://github.com/ChocolateApp/Chocolate/discussions/7#discussioncomment-5633071

I was also looking at maybe breaking it up. Maybe use this issue to reference it in the future.

AtomsForPeace avatar Apr 18 '23 11:04 AtomsForPeace

Here's a good example using flask-sqlalchemy: https://github.com/pallets-eco/flask-sqlalchemy/tree/main/examples/flaskr

AtomsForPeace avatar Apr 18 '23 11:04 AtomsForPeace

I just merged your PR, I'm gonna work on the break up of app.py

Impre-visible avatar Apr 18 '23 11:04 Impre-visible

I tried your code, and there's a problem, all static files return a 404 error image

Impre-visible avatar Apr 18 '23 11:04 Impre-visible

I found how to repair that, I'm gonna commit

Impre-visible avatar Apr 18 '23 12:04 Impre-visible

Maybe we can keep this issue open until app.py is really broken appart ? We can also write the list of what needs to be done as a task list and have GitHub showing the completion status with something like this

  • [ ] identify the different aspects of the app (auth, videos management, books management, music management, commons module...)
  • [ ] create the subfolders for each one with the models and the blueprints

mauvray avatar Apr 18 '23 13:04 mauvray

OK, let's do that

Impre-visible avatar Apr 18 '23 17:04 Impre-visible