无法在我的本地运行python服务器

时间:2018-03-07 21:58:10

标签: python pydev

当我运行python manage.py runserver时,我收到以下错误

Could not connect to 127.0.0.1: 5678
Traceback (most recent call last):
  File "/Users/../../../env/lib/python2.7/site-packages/_pydevd_bundle/pydevd_comm.py", line 488, in start_client
    s.connect((host, port))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 22] Invalid argument

我的manage.py

import os
import sys
import pymysql

# Uncomment if you want to debug using pydevd
if (os.environ.get('LOCAL_ENVIRONMENT', '')):
  import pydevd
  pydevd.settrace(stdoutToServer=True, stderrToServer=True, suspend=False)

0 个答案:

没有答案