Ejecuta el django.wsgi por consola y ve que error te muestra,
yo recién termine hoy de colocar mi web de prueba en producción y eso me
ayudo mucho para encontrar los errores.

2011/11/22 Yulier Garcia <yulier.s...@gmail.com>

> Problema configurando django1.3 y apache2.2.8 con mod_wsgi en Windows XP
> sp3
>
> Tengo instalado python 2.6 en C:\Python26
> Tengo un sitio django en esta ubicacion :
> D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite
> y funciona perfectamente con el servidor de desarrollo de django
> (python manage.py runserver 8000),
> (he probado el mod_wsgi solo y tambien funciona)
> pero cuando trato de configurar django con apache y mod_wsgi no funciona
> esta es mi configuracion basica:
>
> //-----------------------------------------------------------------------------------------------------------------------
> my httpd.conf
>
> LoadModule wsgi_module modules/mod_wsgi.so
>
> <VirtualHost *:80>
>
>    ServerName test.djangoserver
>    DocumentRoot D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite
>
>    <Directory D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite >
>        Order allow,deny
>        Allow from all
>    </Directory>
>
>    WSGIDaemonProcess mysite processes=2 threads=15
>    WSGIProcessGroup mysite
>
>    WSGIScriptAlias /
> D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite/apache/django.wsgi
>
> </VirtualHost>
>
> //---------------------------------------------------------------------------------
> my django.wsgi
>
> import os
> import sys
>
> sys.path.append('D:/Trabajo/Investigacion/Automatica/WEBSITE')
> sys.path.append('D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite')
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
>
>
>
> //---------------------------------------------------------------------------------
> my Apache error log:
>
> resuming normal operations
> [Tue Nov 22 12:38:00 2011] [notice] Server built: Jan 18 2008 00:37:19
> [Tue Nov 22 12:38:00 2011] [notice] Parent: Created child process 6016
> [Tue Nov 22 12:38:01 2011] [warn] mod_wsgi: Compiled for Python/2.6.2.
> [Tue Nov 22 12:38:01 2011] [warn] mod_wsgi: Runtime using Python/2.6.5.
> [Tue Nov 22 12:38:01 2011] [notice] Child 6016: Child process is running
> [Tue Nov 22 12:38:01 2011] [notice] Child 6016: Acquired the start mutex.
> [Tue Nov 22 12:38:01 2011] [notice] Child 6016: Starting 64 worker threads.
> [Tue Nov 22 12:38:01 2011] [notice] Child 6016: Starting thread to
> listen on port 80.
> [Tue Nov 22 12:50:11 2011] [notice] Parent: Received shutdown signal
> -- Shutting down the server.
> [Tue Nov 22 12:50:11 2011] [notice] Child 6016: Exit event signaled.
> Child process is ending.
> [Tue Nov 22 12:50:12 2011] [notice] Child 6016: Released the start mutex
> [Tue Nov 22 12:50:13 2011] [notice] Child 6016: All worker threads have
> exited.
> 'import site' failed; use -v for traceback
> 'import site' failed; use -v for traceback
> [Tue Nov 22 12:50:13 2011] [notice] Child 6016: Child process is exiting
> [Tue Nov 22 12:50:13 2011] [notice] Parent: Child process exited
> successfully.
>
> //------------------------------------------------------------------------------------
>
> Aperciaria cualquier ayuda de la comunidad . Garcias
> _______________________________________________
> Python-es mailing list
> Python-es@python.org
> http://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>



-- 
Marcelo Leiva Sandoval
Linux User #491264
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a