django-wsgiserver アプリをダウンロードしてインストールしたので、django プロジェクトで cherrypy を使用できます。pip を使用してインストールし、settings.py に追加しました。manage.py に runwsgiserver コマンドが表示されます。しかし、実行しようとすると、次のエラーが表示されます
./manage.py runwsgiserver
KeyError: 'default'
何が原因でしょうか? もっと情報が必要ですか?
setting.py
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_wsgiserver',
'south',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)
EDIT:私はそれを解決しました... dbエンジンを追加する必要がありました:P ..しかし、今私はこのメッセージを受け取ります
./manage.py runwsgiserver host=0.0.0.0 staticserve=False
Validating models..
0 errors found
October 06, 2013 - 11:02:37
Django version 1.5.4, using settings 'rhombus.settings'
cherrypy django_wsgiserver is running at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Unhandled exception in thread started by <bound method Command.start_server_servestatic of <django_wsgiserver.management.commands.runwsgiserver.Command object at 0x9f6c70c>>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django_wsgiserver/management/commands/runwsgiserver.py", line 469, in start_server_servestatic
server.start()
File "/usr/local/lib/python2.7/dist-packages/django_wsgiserver/wsgiserver/wsgiserver2.py", line 1857, in start
raise socket.error(msg)
socket.error: No socket could be created
どうしてこれなの?