Set LogLevel directive in Apache configuration to 'info' so that mod_wsgi
logs more about what it is doing and whether a request even hits mod_wsgi.
I would suggest you request is not even finding the server. Do you see
anything for your requests in the Apache access log?
Graham
On Tuesday, March 15, 2011 3:23:43 AM UTC-4, Tomas Neme wrote:
>
> I usually don't send formatted email, but needed to clarify what's code and
> what's not
>
> I'm trying to get apache to run my django site at django.tomasneme.com.arand
> the requests are timing out. There's nothing in apache's or the site's
> configured error logs, except for this when I start the server:
>
> [Tue Mar 15 04:07:04 2011] [error] Exception KeyError:
> KeyError(140345358255936,) in <module 'threading' from
> '/usr/lib/python2.6/threading.pyc'> ignored
> [Tue Mar 15 04:07:04 2011] [error] Exception KeyError:
> KeyError(140345358255936,) in <module 'threading' from
> '/usr/lib/python2.6/threading.pyc'> ignored
> [Tue Mar 15 04:07:04 2011] [error] Exception KeyError:
> KeyError(140345358255936,) in <module 'threading' from
> '/usr/lib/python2.6/threading.pyc'> ignored
> [Tue Mar 15 04:07:04 2011] [error] Exception KeyError:
> KeyError(140345358255936,) in <module 'threading' from
> '/usr/lib/python2.6/threading.pyc'> ignored
> [Tue Mar 15 04:07:04 2011] [error] Exception KeyError:
> KeyError(140345358255936,) in <module 'threading' from
> '/usr/lib/python2.6/threading.pyc'> ignored
> [Tue Mar 15 04:07:04 2011] [notice] SIGHUP received. Attempting to restart
> [Tue Mar 15 04:07:04 2011] [warn] mod_wsgi: Compiled for Python/2.6.5.
> [Tue Mar 15 04:07:04 2011] [warn] mod_wsgi: Runtime using Python/2.6.6.
> [Tue Mar 15 04:07:04 2011] [notice] Apache/2.2.16 (Ubuntu)
> PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch mod_wsgi/3.2 Python/2.6.6 configured
> -- resuming normal operations
>
> This the relevant bit of my apache configuration: sites-enabled/django
>
> <Directory /home/lacrymology/www/django>
> Order allow,deny
> Allow from All
> </Directory>
>
> <VirtualHost *:80>
> ServerName django.tomasneme.com.ar
> DocumentRoot /home/lacrymology/www/django
>
> ErrorLog "|/usr/sbin/rotatelogs /var/log/apache2/django/error_log.%Y%m%d
> 86400"
> WSGIScriptAlias / /home/lacrymology/www/django/apache/tomasneme.wsgi
> </VirtualHost>
>
> and this is ~/www/django/apache/tomasneme.wsgi
>
> import os
> import sys
>
> path = '/home/lacrymology/workspace/django'
> if path not in sys.path:
> sys.path.append(path)
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'tomasneme.settings'
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
>
> finally, my (just created) django app..
>
> lacrymology@Optimus:apache$ ls
> /home/lacrymology/workspace/django/tomasneme/
> __init__.py manage.py settings.py urls.py
>
> I'm running an Ubuntu box, and the config files have been cleaned as per
> apache.org instructions.
>
> If anyone can help me figure out what's going on, I'd be much grateful
>
> ahoy!
>
> Tomás Neme
>
> -- "The whole of Japan is pure invention. There is no such country, there
> are no such people" --Oscar Wilde
>
> |_|0|_|
> |_|_|0|
> |0|0|0|
>
> (\__/)
> (='.'=)This is Bunny. Copy and paste bunny
> (")_(") to help him gain world domination.
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.