apache log

[Sat May 21 23:14:54 2011] [error] [client ::1] mod_wsgi (pid=14558):
Exception occurred processing WSGI script '/home/mariano/mysite/apache/
django.wsgi'.
[Sat May 21 23:14:54 2011] [error] [client ::1] Traceback (most recent
call last):
[Sat May 21 23:14:54 2011] [error] [client ::1]   File "/usr/local/lib/
python2.6/dist-packages/django/core/handlers/wsgi.py", line 250, in
__call__
[Sat May 21 23:14:54 2011] [error] [client ::1]
self.load_middleware()
[Sat May 21 23:14:54 2011] [error] [client ::1]   File "/usr/local/lib/
python2.6/dist-packages/django/core/handlers/base.py", line 39, in
load_middleware
[Sat May 21 23:14:54 2011] [error] [client ::1]     for
middleware_path in settings.MIDDLEWARE_CLASSES:
[Sat May 21 23:14:54 2011] [error] [client ::1]   File "/usr/local/lib/
python2.6/dist-packages/django/utils/functional.py", line 276, in
__getattr__
[Sat May 21 23:14:54 2011] [error] [client ::1]     self._setup()
[Sat May 21 23:14:54 2011] [error] [client ::1]   File "/usr/local/lib/
python2.6/dist-packages/django/conf/__init__.py", line 42, in _setup
[Sat May 21 23:14:54 2011] [error] [client ::1]     self._wrapped =
Settings(settings_module)
[Sat May 21 23:14:54 2011] [error] [client ::1]   File "/usr/local/lib/
python2.6/dist-packages/django/conf/__init__.py", line 89, in __init__
[Sat May 21 23:14:54 2011] [error] [client ::1]     raise
ImportError("Could not import settings '%s' (Is it on sys.path?): %s"
% (self.SETTINGS_MODULE, e))
[Sat May 21 23:14:54 2011] [error] [client ::1] ImportError: Could not
import settings 'mysite.settings' (Is it on sys.path?): No module
named mysite.settings
[Sat May 21 23:14:54 2011] [error] [client ::1] File does not exist: /
var/www/favicon.ico

It say that the settings file is not in sys path but in the
django.wsgi file it's add it.




On 21 mayo, 23:12, podio <ven...@podiodeportes.com.ar> wrote:
> I'm trying to configure django with mod wsgi.
>
> I put mysite in /home/mariano/mysite create with django 1.3, running
> the development server works ok.
> When I try it to configure with apache2 with mod_wsgi I get 500 error:
> Internal Server Error
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
>
> --------------------------------------------------------------------------- 
> ------------------------
> the httpd.conf:
> --------------------------------------------------------------------------- 
> ------------------------
> WSGIScriptAlias /mysite /home/mariano/mysite/apache/django.wsgi
>
> --------------------------------------------------------------------------- 
> ------------------------
> the /home/mariano/mysite/apache/django.wsgi file:
> --------------------------------------------------------------------------- 
> ------------------------
> import os
> import sys
>
> path = '/home/mariano/mysite'
> if path not in sys.path:
>     sys.path.append(path)
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
>
> when i change the httpd.conf with another wsgi in the same folderfile
> it load ok!
>
> --------------------------------------------------------------------------- 
> ------------------------
> /home/mariano/mysite/apache/django2.wsgi
> --------------------------------------------------------------------------- 
> ------------------------
> def application(environ, start_response):
>     status = '200 OK'
>     output = 'Hello World!'
>
>     response_headers = [('Content-type', 'text/plain'),
>                         ('Content-Length', str(len(output)))]
>     start_response(status, response_headers)
>
>     return [output]
>
> Due that I think the problem is in the wsgi file that call the
> django.core.handlers.wsgi.WSGIHandler()
> I very new in Django, I'm trying to make this work to then configure
> django 1.1.4 in the same machine, to use it with lfs shop.
>
> I have my web in joomla and it's too slow I try lfs and it's great but
> I can only use it with django server....
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to