0
0

More than 3 years have passed since last update.

Django コマンド メモ

Posted at

開発環境

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/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0