For more information on concepts covered in this lesson, you can check out:
- How to Set Up a Django Project | Real Python Article
- Build a Personal Diary With Django and Python | Real Python Article
Here are the command-line snippets used in this lesson:
$ mkdir portfolio-project
$ cd portfolio-project/
$ python3 -m venv venv --prompt portfolio-project
$ tree -L 2
$ ls venv/bin/ | grep activate
$ source venv/bin/activate
$ which python
$ which pip
$ python -m pip install django==3.2.7
$ python -m pip install --upgrade pip
$ pip list
$ pip freeze > requirements.txt
$ django-admin startproject portfolio .
$ ls -l
$ python manage.py migrate
$ sqlite3 db.sqlite3
sqlite> .tables
$ python manage.py createsuperuser
$ python manage.py runserver
asgiref==3.4.1
Django==3.2.7
pytz==2021.3
sqlparse==0.4.2