Opened 14 years ago

Closed 14 years ago

#14160 closed (invalid)

Internal server error 500

Reported by: FilipeCifali Owned by: support
Component: Uncategorized Version: dev
Severity: Keywords: internal server error 500 django.core
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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:

[campominado@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.environPYTHON_EGG_CACHE = '/home/campominado/apps_wsgi/.python-eggs'
os.environDJANGO_SETTINGS_MODULE='campominado.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

Please, help!

Change History (1)

comment:1 by Alex Gaynor, 14 years ago

Resolution: invalid
Status: newclosed

Hello, Trac is designed for filing bugs about Django itself, not for questions on how to use Django. For those you can use either the django-users mailing list, or the #django channel on irc.freenode.net.

Note: See TracTickets for help on using tickets.
Back to Top