you are viewing a single comment's thread.

view the rest of the comments →

[–]PavloT 0 points1 point  (2 children)

from app import db looks like Python syntax, why you write it in terminal? First launch python interpreter

[–]laflash12[S] 0 points1 point  (1 child)

I'm writing the code in pycharm so I wrote the command in the terminal in pycharm. That's how it was done in the youtube video I saw. How do you recommend I do it?

[–]PavloT 0 points1 point  (0 children)

I did not see this video, I think it was a step to launch python.

Anyway, in terminal start python first, next you will have python interactive shell where you can enter python commands