django-wsgiserver for cherrypy and django -
i downloaded , installed django-wsgiserver app can use cherrypy django project. used pip install , added settings.py. see runwsgiserver command on manage.py. when try run following error
./manage.py runwsgiserver keyerror: 'default'
what might fault? u need more information?
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 next line enable admin: 'django.contrib.admin', # uncomment next line enable admin documentation: # 'django.contrib.admindocs', )
edit:i solved it...had add db engine :p..but message
./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 running @ http://0.0.0.0:8000/ quit server control-c. unhandled exception in thread started <bound method command.start_server_servestatic of <django_wsgiserver.management.commands.runwsgiserver.command object @ 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 created
why this?
yes, if have problem, before running ./manage.py runwsgiserver make sure else works in django project. example, do::
./manage.py syncdb ./manage.py runserver # test out project built-in server
the specific socket error seeing can occur if process running has used port 8000.
also, can see using django 1.5.4. helps mention versions of other applications , operating system running on: linux?, mac?, windows? django-wsgiserver 0.8.0rc?
i hope working you.
-clm
Comments
Post a Comment