para chamar o projeto (ainda no httpd)
WSGIScriptAlias /portal C:/xampp/htdocs/portal/django.wsgi
<Directory "C:/xampp/htdocs/portal/" >
Options None
AllowOverride None
Order deny,allow
Allow from all
</Directory>
Alias /media/ "C:/Python27/Lib/site-packages/django/contrib/admin/media/"e por fim o meu django.wsgi:
import os
import sys
sys.path.append('C:/Python27')
sys.path.append('C:/xampp/htdocs/')
sys.path.append('C:/xampp/htdocs/portal')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()no log de erro do apache esta dando varios erros destaquei uns aqui::
[notice]Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_wsgi/3.3 Python/2.7 mod_autoindex_color PHP/5.2.6 configured -- resuming normal operations
[notice]Server built: Jun 14 2008 19:02:12
[notice]Parent: Created child process 2460
[notice]Child 2460: Child process is running
[notice]Child 2460: Acquired the start mutex.
[notice]Child 2460: Starting 250 worker threads.
[notice]Child 2460: Starting thread to listen on port 443.
[notice]Child 2460: Starting thread to listen on port 80.
[error][client 10.104.0.229] mod_wsgi (pid=2460): Exception occurred processing WSGI script 'C:/xampp/htdocs/portal/django.wsgi'.
[error][client 10.104.0.229] Traceback (most recent call last):
[error][client 10.104.0.229] File "C:\\Python27\\lib\\site-packages\\django\\core\\handlers\\wsgi.py", line 273, in __call__
[error][client 10.104.0.229] response = self.get_response(request)
[error][client 10.104.0.229] File "C:\\Python27\\lib\\site-packages\\django\\core\\handlers\\base.py",line 169, in get_response
[error][client 10.104.0.229] from django.db import utils
[error][client 10.104.0.229] ImportError: cannot import name utils
bom pelo o que eu percebi ele não esta carregando o django então continuo pesquisando qualquer coisa eu agradeço.....
2011/6/10 Fábio Elísio <fabio....@gmail.com>:
> WSGIScriptAlias /portal C:/xampp/htdocs/portal/django.wsgi
Não sei se faz diferença, mas você tem definido alguma coisa no seu
WSGIPythonPath no conf do apache?
Abraço,
--
Danilo Cabello
Bottom-poster maniac.
--
Django Brasil em Google Groups <http://groups.google.com.br/group/django-brasil>
Associe-se à Python Brasil e suporte nossa comunidade! <http://associacao.python.org.br/>