Graham - thanks for providing such great tools! I am running Vagrant on Windows 10.
I have an existing Python Django 1.7 application which works fine on a server-level apache instance or via manage.py runserver I followed instructions from Graham's post: http://blog.dscpl.com.au/2015/04/integrating-modwsgi-express-as-django.html and installed mod_wsgi-httpd and then mod_wsgi within my activated virtual environment My modules: $ pip freeze *Django==1.7.1* django-crispy-forms==1.4.0 django-debug-toolbar==1.4 django-reversion==1.10.0 EasyProcess==0.2.2 funcsigs==1.0.2 mock==2.0.0 *mod-wsgi==4.5.10* *mod-wsgi-httpd==2.4.23.2* pbr==1.10.0 psycopg2==2.5.4 pytz==2015.2 PyVirtualDisplay==0.2 PyYAML==3.11 selenium==2.53.6 six==1.10.0 sqlparse==0.1.19 ua-parser==0.3.6 user-agents==0.3.2 (venv) vagrant@production24:/rmove/server$ I get this error: (venv) vagrant@production24:/rmove/server$ python manage.py runmodwsgi Successfully ran command. Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/rmove/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line utility.execute() File "/rmove/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/rmove/venv/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv self.execute(*args, **options.__dict__) File "/rmove/venv/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute output = self.handle(*args, **options) File "/rmove/venv/lib/python2.7/site-packages/mod_wsgi/server/management/commands/runmodwsgi.py", line 108, in handle 'start-server', args, options) File "/rmove/venv/lib/python2.7/site-packages/mod_wsgi/server/__init__.py", line 2587, in _cmd_setup_server if not options['host']: KeyError: 'host' mod_wsgi-express is in high spirits: 'My web site runs on Malt Whiskey(:' (venv) vagrant@production24:/rmove/server$ mod_wsgi-express start-server Server URL : http://localhost:8000/ Server Root : /tmp/mod_wsgi-localhost:8000:1000 Server Conf : /tmp/mod_wsgi-localhost:8000:1000/httpd.conf Error Log File : /tmp/mod_wsgi-localhost:8000:1000/error_log (warn) Request Capacity : 5 (1 process * 5 threads) Request Timeout : 60 (seconds) Startup Timeout : 15 (seconds) Queue Backlog : 100 (connections) Queue Timeout : 45 (seconds) Server Capacity : 20 (event/worker), 20 (prefork) Server Backlog : 500 (connections) Locale Setting : en_US.UTF-8 Thanks for any help you can provide. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
