Chocolate
Chocolate copied to clipboard
Break up app.py
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.
Here's a good example using flask-sqlalchemy: https://github.com/pallets-eco/flask-sqlalchemy/tree/main/examples/flaskr
I just merged your PR, I'm gonna work on the break up of app.py
I tried your code, and there's a problem, all static files return a 404 error

I found how to repair that, I'm gonna commit
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
OK, let's do that