LoginSignup
0
1

More than 3 years have passed since last update.

Djangoのチュートリアルでの404エラーを解決した

Posted at

エラー文

Using the URLconf defined in tutorial_hy_env.urls, Django tried these URL patterns, in this order:

スクリーンショット 2021-05-11 19.13.10.png
このエラー文に当たった仲間はいないだろうか。
このエラーはなかなか検索しても見つからず長い間探した。

解決法

だが答えは近くにあったのだ。。。。
そう、
スクリーンショット 2021-05-11 19.15.11.png
ここだ。。

ブラウザで http://localhost:8000/polls/ にアクセスすると、 "Hello, world. You're at the polls index." と表示されるのが確認できるでしょう。

!?!?!?!?!?!?!?!?!?!?!?!?!?
私の場合

Django version 3.2.2, using settings ''
Starting development server at "ココ"
Quit the server with CONTROL-C.
Not Found: /
[11/May/2021 10:09:30] "GET / HTTP/1.1" 404 2174

上記のurlをクリックしてページに飛んでしまっていた。なんたる凡ミス。。。。
しっかり一つ一つチュートリアルを読んでいこうと決めました。

参考

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