Hi all, I have a lot of basic app organization questions. These are not specific to PythonAnywhere.
Using Flask. I'm not sure I'm making a single page application. In some sense I have various "apps" on different pages handled within different app.route sections. Question 1 - is that a reasonable organization for a small app? For example, in one page I upload some data and in another page, I massage this data, and in a third page, I (as a user) can download the new data. Of course, it can be more complicated. Now for some more super basic questions:
-
I want to use Flask with Angular or some other framework. Reading elsewhere it seems like my Python Flask could just serve up REST APIs, and that is probably smarter. However, I plan to start with having Flask do the routing, then on my separate pages, I'll use Angular as a controller for that specific screen.
-
What is a good/best way for all my top nav and side nav stuff. Should I have a template include other templates and if so what is a good way to keep all that organized? Further to that, if I create a button to do some change to my data, then I want to show my change on the right, should I basically use the same template but put my content on the right in a table column? Frames?
Edit since posting: mainly using Angular partials for this and various CSS things. No longer a question.
- What else should I think about when combining Flask and some kind of JS framework? Is it silly not to think REST APIs? Note that I obviously do not want to use node.js (or else I wouldn't be using PythonAnywhere). There are various Python libraries like pandas I want to use so it seems cleaner to use Flask or maybe Django.
Thanks for any answers. I realize this is kind of a big post.
Edit: got most of my questions above answered. Have more detailed questions below (most of which I seem to be figuring out eventually). These aren't really Python or PythonAnywhere questions, more general app, but appreciate all the comments!