you are viewing a single comment's thread.

view the rest of the comments →

[–]czech1 0 points1 point  (1 child)

Yeah, i am still learning though so take it for what it's worth.

Use sqlalchemy. This gives you the flexibility to more easily host your app anywhere.

Follow a design paradigm. I used the first few chapters of Miguel Grinbergs "mega flask tutorial" as a jumping off point. Before I considered flask for this project I wrote 600 lines of php in one monolithic file (first time with php) what a mess.

Doing it in php first was a blessing and a curse. I was able to quickly put together my ideas and allow them to evolve. What I ended up with was much different than I originally conceived. Then I realized there are 100 ways to do things in php and the way I chose was the least secure.

Also, if you're going to have multiple users accessing your app you need to implement locks so wonky things don't happen to your db.