前提・実現したいこと
cloud9 djangoで"Hello World"したい
runserverするとpreview running applicationで
Unable to load http preview
Open your page in a new tab
why am i seeing this?
と表示され、open your page in a new tabもしくは
preview running applicationの右上のボタンでページを開くと
404エラーが発生します。
解決方法がわからないので教えていただけますでしょうか。
よろしくお願いします。
発生している問題・エラーメッセージ
Page not found (404) Request Method: GET Request URL: http://c2e24c0be5f84168a82551d33bbe9185.vfs.cloud9.us-east-1.amazonaws.com:80/ Using the URLconf defined in myapp.urls, Django tried these URL patterns, in this order: bbs/ admin/ The empty path didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
該当のソースコード
ec2-user:~/environment/myapp $ python manage.py runserver 8080 Performing system checks... System check identified no issues (0 silenced). April 12, 2019 - 00:05:41 Django version 2.0.2, using settings 'myapp.settings' Starting development server at http://127.0.0.1:8080/ Quit the server with CONTROL-C. Not Found: / [12/Apr/2019 00:06:13] "GET / HTTP/1.1" 404 2080
補足情報(FW/ツールのバージョンなど)
aws cloud9 python3.68 django2.02
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2019/04/12 04:33