自分のIPアドレスでlocalhost8000を実行しても何も表示されないです。
http://localhost:8000/accounts/upload_save
を打つと黄色い
IndexError at /accounts/upload_save/
list index out of range
とエラーの画面が出るのですが、
http://自分のIPアドレス:8000/accounts/upload_save
を打つと
サーバーに接続できません としか表示されません。
Tracebackには
[03/Aug/2017 12:13:40] "GET /accounts/upload_save HTTP/1.1" 301 0 Internal Server Error: /accounts/upload_save/ Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/exception.py", line 39, in inner response = get_response(request) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view return view_func(*args, **kwargs) File "/Users/XXX/Desktop/KenshinServer/accounts/views.py", line 120, in upload_save photo_obj.image = files[0] IndexError: list index out of range [03/Aug/2017 12:13:40] "GET /accounts/upl
と出ていました。
自分のIPアドレスでlocalhost8000を実行してた時にも黄色い画面が出てきて欲しいのですが、それはできないのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。