LogFAQs > #957542132

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, Database 8 ( 02.18.2021-09-28-2021 ), DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicITT: Learning Python
SomeLikeItHoth
08/29/21 5:38:43 AM
#189:


Creating my own Flask database to create a blog and was stuck for 20 minutes importing the database. Turns out it was because I had made a typo in my file name when trying to call from flask import db. I googled so many questions trying to figure out what I did wrong.

Questionmarktarius posted...
But, you need to know when it's worth going OOP, and when you should just do it all in main().
I still have trouble with using the import function properly. I was working on a shop to purchase units and set it to its own shop.py file but it wouldn't allow me to call a function from my main.py file due to me calling import from main.py to import the shop.

1337toothbrush posted...
I had forgotten about this topic! Posting here to bring it to the top of my active messages list. I might write an OOP battle system example if you think that'd be useful.
Great idea. Both myself and SpiritSephiroth have been working on our own battle systems. I'm using OOP for mine, so making classes & such but I'm still having trouble with it so I'm taking a break to learn more about OOP. I'll probably get back into that project some time this week, because right now I'm working on a flask database to create a blog. Let us know your ideas + how it goes. @1337toothbrush

---
FAM FOREVER.
... Copied to Clipboard!
Topic List
Page List: 1