Kurt,
Ok, to summary:
You want to use virtual environments. Microsoft Code and PyCharm both support them as well. Not sure about Visual Studio.
Microsoft Code appears to be pretty good debugging server side code (running locally.)
The Django (if you use that) environment is really "interesting". It's a complete framework including the back end data access, server side code, and UI. You can create restful interfaces or write the html out directly.. That said, it does take quite a bit of buy in. And, you can write your code using functions or classes. Classes mean less work and repetition, but having both approaches used does make finding answers sometimes a little confusing.
Python uses classes, but the implementation will make your brain hurt. And python supports multiple inheritance, which is also a mind twist. The rational is cool, but you want to be careful playing with it.
The DjangoGirls tutorial really is a good (and fast) way to get started. They also have a forum where you can post more novice questions and not be shot down like you might on StackOverflow.
Feel free to ping me directly if you have any questions. Don't know if I will have the answer, but I might... :)
And if I stumble on something that the kids might like, I will let you know.
Fletcher
Fletcher Johnson FletcherSJohnson@Yahoo.com LinkedIn.com/in/FletcherJohnson twitter.com/fletcherJ strava.com/athletes/fletcherjohnson 408-946-0960 - work 408-781-2345 - cell
-----Original Message----- From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Kurt @ Gmail Sent: Monday, January 28, 2019 8:49 AM To: profox@leafe.com Subject: Re: [NF] Looking for a little Python/Django help
I'm actually going to read your Blog post - since, if you can believe it - I'm actually starting to teach a class to kids, in an after school type program. One class is 3D Design/3D Printing - but, the other class is Python based. Am also going to look around at some older threads here talking about Python - so I can truly get a quick jump start in Python. Of course, needless to say - I need only stay 1 or 2 steps ahead of the kids!
And - if ANYONE has a suggestion for something Cool I could teach the kids in Python - feel free to give me a shout out!
Fletcher - sorry to Hi-Jack your thread. At least its not a total hi-jacking and steering it into a wrong direction...
I give you back the steering wheel now!
-K-
On 1/24/2019 4:55 PM, Ed Leafe wrote:
On Jan 24, 2019, at 5:07 PM, Fletcher Johnson FletcherSJohnson@yahoo.com wrote:
My most interesting python question is related to the "file... import ..." command. Apparently, you can't specify a parent folder in the file portion, just the current one. But there is a way to designate where other files may be found, I just haven't figured out where that gets set, especially when using environments.
You can't specify operating system paths in the import command; those modules need to be in known locations where Python can find them. When you install something (usually with `pip install`), it is placed in the 'site-packages' directory of your environment. I started to write a big long explanation here, but decided that it would be better as a blog post:
https://blog.leafe.com/using-a-python-virtual-environment/
Of course, if you have any questions about that, let me know.
-- Ed Leafe
[excessive quoting removed by server]