0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[備忘録]ローカル開発用の簡易サーバーをpythonで立ち上げる方法

Posted at

仮想環境の構築方法

qiita.rb
PS C:\Users\user> cd #導入したいディレクトリを選択
PS C:\Users\user\your_project> python -m venv env

これで仮想環境を導入。

qiita.rb
PS C:\Users\user\your_project>.\env\Scripts\Activate.ps1

ここでコードの先頭に(env)と出れば仮想環境の構築完了。

qiita.rb
(env) PS C:\Users\user\your_project> pip install django

これでDjangoのインストールが完了。

qiita.rb
(env) PS C:\Users\user\your_project> cd your_site
(env) PS C:\Users\user\your_project\your_site> python manage.py runserver
#この後待機状態になる

以降、Djangoでホームページを作成していけば良い。

0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?