NUEVO ERROR configurando django1.3 y apache2.2.8 con mod_wsgi sobre Windows
hola juan , de antemano gracias por tu ayuda
El problema anterior pude solucionarlo , instalando el python para
todos los usuarios y modificando el httpd.conf,
pero ahora tengo un nuevo problema (ver my Apache error log:)
//-----------------------------------------------------------------------------------------------------------------------
my httpd.conf
LoadModule wsgi_module modules/mod_wsgi.so
# Static content
Alias /media/ D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite/media
<Directory D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite/media >
Order deny,allow
Allow from all
</Directory>
# Django dynamic content
WSGIScriptAlias /
D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite/apache/django.wsgi
<Directory D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite/apache>
Order deny,allow
Allow from all
</Directory>
//---------------------------------------------------------------------------------
my django.wsgi
import os
import sys
sys.path.append('D:/Trabajo/Investigacion/Automatica/WEBSITE')
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
//---------------------------------------------------------------------------------
my Apache error log:
[Tue Nov 22 15:31:05 2011] [notice] Server built: Jan 18 2008 00:37:19
[Tue Nov 22 15:31:05 2011] [notice] Parent: Created child process 4124
[Tue Nov 22 15:31:05 2011] [warn] mod_wsgi: Compiled for Python/2.6.2.
[Tue Nov 22 15:31:05 2011] [warn] mod_wsgi: Runtime using Python/2.6.5.
[Tue Nov 22 15:31:05 2011] [notice] Child 4124: Child process is running
[Tue Nov 22 15:31:05 2011] [notice] Child 4124: Acquired the start mutex.
[Tue Nov 22 15:31:05 2011] [notice] Child 4124: Starting 64 worker threads.
[Tue Nov 22 15:31:05 2011] [notice] Child 4124: Starting thread to
listen on port 80.
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] mod_wsgi
(pid=4124): Exception occurred processing WSGI script
'D:/Trabajo/Investigacion/Automatica/WEBSITE/mysite/apache/django.wsgi'.
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\core\\handlers\\wsgi.py",
line 273, in __call__
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] response =
self.get_response(request)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\core\\handlers\\base.py",
line 169, in get_response
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] response =
self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\core\\handlers\\base.py",
line 203, in handle_uncaught_exception
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return
debug.technical_500_response(request, *exc_info)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\views\\debug.py", line 59,
in technical_500_response
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] html =
reporter.get_traceback_html()
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\views\\debug.py", line 151,
in get_traceback_html
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return t.render(c)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\template\\base.py", line
123, in render
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return
self._render(context)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\template\\base.py", line
117, in _render
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return
self.nodelist.render(context)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\template\\base.py", line
744, in render
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1]
bits.append(self.render_node(node, context))
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\template\\debug.py", line
73, in render_node
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] result =
node.render(context)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\template\\debug.py", line
90, in render
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] output =
self.filter_expression.resolve(context)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\template\\base.py", line
536, in resolve
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] new_obj =
func(obj, *arg_vals)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\template\\defaultfilters.py",
line 695, in date
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return
format(value, arg)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\dateformat.py", line
285, in format
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return
df.format(format_string)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\dateformat.py", line
30, in format
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1]
pieces.append(force_unicode(getattr(self, piece)()))
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\dateformat.py", line
191, in r
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return
self.format('D, j M Y H:i:s O')
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\dateformat.py", line
30, in format
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1]
pieces.append(force_unicode(getattr(self, piece)()))
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\encoding.py", line
71, in force_unicode
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] s = unicode(s)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\functional.py", line
206, in __unicode_cast
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return
self.__func(*self.__args, **self.__kw)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\translation\\__init__.py",
line 81, in ugettext
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return
_trans.ugettext(message)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\translation\\trans_real.py",
line 286, in ugettext
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] return
do_translate(message, 'ugettext')
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\translation\\trans_real.py",
line 276, in do_translate
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] _default =
translation(settings.LANGUAGE_CODE)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\translation\\trans_real.py",
line 185, in translation
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1]
default_translation = _fetch(settings.LANGUAGE_CODE)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\translation\\trans_real.py",
line 162, in _fetch
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] app =
import_module(appname)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] File
"C:\\Python26\\lib\\site-packages\\django\\utils\\importlib.py", line
35, in import_module
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1] __import__(name)
[Tue Nov 22 15:31:08 2011] [error] [client 127.0.0.1]
TemplateSyntaxError: Caught ImportError while rendering: No module
named polls
_______________________________________________
Python-es mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/