開発環境
virtualenv
インストール
$ pip3 install virtualenv
仮想環境のディレクトリの作成
$ mkdir work #①
$ cd work #②
$ virtualenv -p python3 venv #③
$ source venv/bin/activate #④
(venv) $ tiyurinoMacBook-proとなっていれば完了 #⑤
仮想環境から離脱
$ deactivate
仮想環境を削除したい場合はディレクトリごと削除してしまえばOK
$ rm -rf venv
仮想サーバー起動
$ python manage.py runserver
サーバーURL
http://127.0.0.1:8000/
お世話になったサイト
https://creepfablic.site/2019/10/25/python-virtualenv/