This lesson gives an overview of what you’ll learn in Python Imports 101. After watching the entire course, you’ll know what imports are, the various ways of importing and also what happens behind the scenes when a module is imported.
Python Imports Overview
We’ll be talking about Python imports, various ways of importing, as well as what actually happens when you import, and introducing a few things that might be useful when dealing with modules, such as
sys.modules and the
dir() command, as well as dealing with layouts, with respect to the
__init__.py and what you can do to make your imports that much nicer when creating your own modules.
00:23 We’re going to be revamping this application. I’m going to show you things like testing, and it’s going to mostly be used for examples when dealing with imports, so that’s just a heads up. You can see the project up on GitHub.
It is called
courtside, a simple Django application. There’s instructions to get it installed, and I will be updating it through various screencasts.
All the commits I’ve made recently are just to get it up and running, like adding a
Procfile, which we’ll discuss on how to deploy things on Heroku.
Become a Member to join the conversation.