Re: Code vs Shell?

2018-07-24 Thread roflcopterpaul
Thank you very much for the responses, everyone. Understanding *why* I've been having to work in the shell makes a lot more sense. Currently, my primary goal of learning Python is for web applications/websites, so I definitely want to learn how to do it all in the code itself, but I'm sure I'll

Re: Code vs Shell?

2018-07-24 Thread C. Kirby
With all respect to the other answers, they don't answer what you are asking. The documentation has you interacting with the shell because django uses a database. In order to interact with the database you have to have an instance of your app running - in this case via the shell. In a future se

Re: Code vs Shell?

2018-07-23 Thread mottaz hejaze
python is not just web , python is very general and has many other usages , so you are developing but in a pythonic way , think of the shell as your scratch paper .. what if you want to learn a code snippet like querying the database with filters , do you have to waste time build a complete app to

Re: Code vs Shell?

2018-07-23 Thread Mike Dewhirst
On 24/07/2018 9:25 AM, roflcopterpaul wrote: Hello, everyone! I am quite the scrub, having written a few super basic apps and currently going through the Django tutorial. As I'm going through the tutorial (creating a "polls" app), I've been perplexed by something the whole time that I haven't

Code vs Shell?

2018-07-23 Thread roflcopterpaul
Hello, everyone! I am quite the scrub, having written a few super basic apps and currently going through the Django tutorial. As I'm going through the tutorial (creating a "polls" app), I've been perplexed by something the whole time that I haven't been able to find an answer to - Why is much