ubuntu server 20.04 に django をインストールする
pip3 は install している前提である。
$ pip3 install --user Django $ python3 -m django --version 3.0.7 $ cd /path/to/workspace $ django-admin startproject testproject $ cd testproject $ python3 manage.py runserver 0.0.0.0:8080 # GET access to http://localhost:8080
ip 指定しておけばポートフォワードしたときにアクセス弾かれる問題は起きない。
参考記事