Getting started with Python

Textbooks/Tutorials

Debugging

Django

Django is an excellent framework for building web applications with Python.

Starting a virtual environment for the Django tutorial.

# go to a folder for your python projects
# in my case, it is a folder called "Developer"
% pwd
/Users/User-Name/Developer

# virtualenv 
# Make a virtualenv called django-tutorial
% virtualenv django-tutorial
created virtual environment CPython3.8.10.final.0-64 in 412ms
  creator CPython3Posix(dest=/Users/User-Name/Developer/django-tutorial, clear=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/User-Name/Library/Application Support/virtualenv)
  added seed packages: pip==21.1.2, setuptools==57.0.0, wheel==0.36.2
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

# Change directory → django-tutorial
% cd django-tutorial 

# Activate the virtual environment
# Mac
% source bin/activate
# Windows
> .\Scripts\activate

"""
IMPORTANT, (virtual environment name) should appear in your command line. In 
this case, it should say django-tutorial.
"""
(django-tutorial) %

"""
pip is a package manager. Any packages installed will exist only in this virtual 
environment. This is good practice when learning Python. Even if an instructor 
does not state to use a virtual environment, it should always be used when 
Python packages need to be installed.
"""
(django-tutorial) % pip install django
# some installs should happen    

"""
Start the django tutorial
"""