Python Django Errno 54 'Connection reset by peer'

前端 未结 4 1511
失恋的感觉
失恋的感觉 2021-01-07 18:32

Having some trouble debugging this. I get this error always when i first start my app up, then intermittently thereafter. Could someone please help me by throwing out some d

4条回答
  •  借酒劲吻你
    2021-01-07 18:52

    I came across the same issue ConnectionResetError: [Errno 54] Connection reset by peer.

    In my case the issue was trying to serve static files through development server with debug settings to False, development server can serve static files only when debug is set to True in settings file.

    In my settings file i replace

    DEBUG = False
    

    with

    DEBUG = True
    

    After that, I restart my development server and it works for me!

提交回复
热议问题