#14160: Internal server error 500 ---------------------------------------------------+------------------------ Reporter: FilipeCifali | Owner: support Status: new | Milestone: Component: Uncategorized | Version: SVN Keywords: internal server error 500 django.core | Stage: Unreviewed Has_patch: 0 | ---------------------------------------------------+------------------------ Need some help please,
Shared hosting enviroment: [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] mod_wsgi (pid=16011): Target WSGI script '/home/campominado/apps_wsgi/campominado.wsgi' cannot be loaded as Python module. [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] mod_wsgi (pid=16011): Exception occurred processing WSGI script '/home/campominado/apps_wsgi/campominado.wsgi'. [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] Traceback (most recent call last): [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] File "/home/campominado/apps_wsgi/campominado.wsgi", line 5, in <module> [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] import django.core.handlers.wsgi [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] ImportError: No module named django.core.handlers.wsgi [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] mod_wsgi (pid=16011): Target WSGI script '/home/campominado/apps_wsgi/campominado.wsgi' cannot be loaded as Python module. [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] mod_wsgi (pid=16011): Exception occurred processing WSGI script '/home/campominado/apps_wsgi/campominado.wsgi'. [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] Traceback (most recent call last): [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] File "/home/campominado/apps_wsgi/campominado.wsgi", line 5, in <module> [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] import django.core.handlers.wsgi [Mon Aug 23 17:45:01 2010] [error] [client 10.5.5.10] ImportError: No module named django.core.handlers.wsgi I've tried to config like: http://www.codekoala.com/blog/2008/installing-django-shared-hosting-site5/ But get only internal server error and that log. My ISP have python 2.4 and 2.6, so I used a virtual Python to set the 2.6 as default python, and then, downloaded the trunk, running python setup.py on django don't return erros: byte-compiling /home/campominado/lib/python2.6/site- packages/django/templatetags/cache.py to cache.pyc byte-compiling /home/campominado/lib/python2.6/site- packages/django/templatetags/__init__.py to __init__.pyc running install_scripts copying build/scripts-2.6/django-admin.py -> /home/campominado/bin changing mode of /home/campominado/bin/django-admin.py to 775 running install_data running install_egg_info Writing /home/campominado/lib/python2.6/site-packages/Django-1.2.1-py2.6 .egg-info And when I run from the terminal, don't display any errors with wsgi script: [campomin...@karpatos ~]$ python Python 2.6.5 (r265:79063, Aug 20 2010, 15:52:16) [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os, sys >>> sys.path.append('/home/campominado/apps_wsgi') >>> os.environ['PYTHON_EGG_CACHE'] = '/home/campominado/apps_wsgi/.python- eggs' >>> os.environ['DJANGO_SETTINGS_MODULE']='campominado.settings' >>> import django.core.handlers.wsgi >>> application = django.core.handlers.wsgi.WSGIHandler() >>> Please, help! -- Ticket URL: <http://code.djangoproject.com/ticket/14160> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" 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-updates?hl=en.
