mkdirlesson01
cdlesson01
python-mvenv.venv
source.venv/bin/activatepipinstallDjango# He's on Django 5.0.1pipinstall--upgradepip# if neededpython# enter the interactive python shell
Make Sure the Installation Worked
Make sure Django is installed
importdjangoprint(django.get_version())quit()
Create the Project
Create project - pretty standard, he doesn't use the period so we have a sublevel myproject folder.
Using port 8001 because I'm starting mkdocs on 8000
django-adminstartprojectmyproject# Creates myproject/myproject structurecdmyproject
pythonmanage.pyrunserver8001# port 8001 default is 8000
Make Sure it Worked
Go to browser and check out localhost:8001 # should see little rocket ship page