Jump to content

Recommended Posts

Posted

hey guys, im trying to deploy Django using mod_wsgi, but i keep running into the following error :

 

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] mod_wsgi (pid=22391): Exception occurred processing WSGI script '/home/ashtanga/public_html/ash/apache/django.wsgi'.

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] Traceback (most recent call last):

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] File "/usr/local/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 241, in __call__

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] response = self.get_response(request)

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", line 142, in get_response

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] return self.handle_uncaught_exception(request, resolver, exc_info)

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", line 181, in handle_uncaught_exception

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] return callback(request, **param_dict)

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] File "/usr/local/lib/python2.4/site-packages/django/views/defaults.py", line 23, in server_error

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] t = loader.get_template(template_name) # You need to create a 500.html template.

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] File "/usr/local/lib/python2.4/site-packages/django/template/loader.py", line 157, in get_template

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] template, origin = find_template(template_name)

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] File "/usr/local/lib/python2.4/site-packages/django/template/loader.py", line 138, in find_template

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] raise TemplateDoesNotExist(name)

[Tue Jun 22 01:42:30 2010] [error] [client 127.0.0.1] TemplateDoesNotExist: 500.html

 

this is my what i added to my httpd.conf :

 

LoadModule wsgi_module modules/mod_wsgi.so

WSGIScriptAlias / /home/ashtanga/public_html/ash/apache/django.wsgi

 

the path to my Django project is /home/ashtanga/public_html/ash

This is my django.wsgi file:

import os

import sys

sys.path.append('/home/ashtanga/public_html/ash')

the actual adress for

security purposes but the path leads to my project called ash

os.environ['DJANGO_SETTINGS_MODULE'] = 'ash.settings'

import django.core.handlers.wsgi

application = django.core.handlers.wsgi.WSGIHandler()

 

can anyone help me figure out why is it not working ? by the way, this configuration makes most of the websites in my server go offline and display a 500 error

Posted

You can't have your own httpd.conf. Do you mean .htaccess? Regardless, .htaccess won't honor LoadModule directives.

Posted
You can't have your own httpd.conf. Do you mean .htaccess? Regardless, .htaccess won't honor LoadModule directives.

 

i have root access, so i have an httpd.conf which is connected to all my websites

Posted
You can't have your own httpd.conf. Do you mean .htaccess? Regardless, .htaccess won't honor LoadModule directives.

 

i have root access, so i have an httpd.conf which is connected to all my websites

Oh, you aren't running this on our server are you? o_O;

Posted

I'm pretty sure he isn't. commonzenpython: This forum is for support with a HelioHost account.

 

If you have root access, our configuration won't be best for you. We're set up to avoid any specific httpd.conf directives.

Posted
I'm pretty sure he isn't. commonzenpython: This forum is for support with a HelioHost account.

 

If you have root access, our configuration won't be best for you. We're set up to avoid any specific httpd.conf directives.

 

thanks im sorry for the confusion , its just that im new to django and web servers, so im trying to get as much help as i can

Guest
This topic is now closed to further replies.
×
×
  • Create New...