LoginSignup
0
1

More than 1 year has passed since last update.

初めてのDjango Windowsで詰まったこと

Posted at

Python、Djangoのインストールから起動して「The install worked successfully! Congratulations!」が見れるまで。

1.参考にしたサイト

https://docs.djangoproject.com/ja/3.2/intro/tutorial01/#creating-a-project
https://docs.djangoproject.com/ja/3.2/intro/install/#install-python
https://qiita.com/t-iguchi/items/f9052d259cec7fe54a00

2.詰まったポイント、いけたポイント

  • Pythonのインストール自体
  • Djangoのインストール自体
  • django-admin startproject mysite の実行 → うまくいけば、「The install worked successfully! Congratulations!」が見れる

簡単なステップしかないように見えるのに、ほとんどのフェーズで詰まりました。

3.何に詰まったのか?

詰まったポイント1

DjangoのインストールはPythonの仮想環境内で行わないといけない。
しかし、仮想環境外でコマンドを実行してDjangoのインストールをした気になっていた。

詰まったポイント2

django-admin startproject mysite も仮想環境外で行っていた。そのため、「コマンドが見つかりません」と怒られる。

すごく単純ですが、仮想環境内でちゃんとやれ!!という話でした。

これから、Djangoと戯れる日々を開始します。

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