Jump to content

Search the Community

Showing results for tags 'dispatcher.wsgi'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Website Management and Coding
    • Technology and the Internet
    • Philosophy, Politics, and Science
    • Art and Entertainment
    • Other Discussion
  • HelioHost
    • Questions
    • Customer Service
    • How You Can Help
  • HelioNet
    • News
    • Contact HelioNet

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hi, Im trying to setup my new django powered website. Im running into some problems while setting it up. I have followed all the guidlines mentioned in the Heliohost site. I am basically having the same issue as the one mentioned in this post. This is my error message: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@vinay.heliohost.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." I tried the stuff mentioned there but couldnt resolve it, further the links mentioned in that post are non-existent now, so cant test it. I have also looked at the wiki article to use the try, except statements. But for some reason, I can see the error statements! Additionally, this is the exceprt of the error message in the error log. " File "/home/muttine2/public_html/personal_prjct/dispatch.wsgi", line 11, in application, referer: http://vinay.heliohost.org/ [Thu Aug 30 02:21:48 2012] [error] [client 99.74.38.192] mod_wsgi (pid=25564): Exception occurred processing WSGI script '/home/muttine2/public_html/personal_prjct/dispatch.wsgi'., referer: http://vinay.heliohost.org/" This is my dispatch.wsgi file content " try: import os, sys #sys.path.append("/home/muttine2/public_html/personal_prjct") sys.path.append("/home/muttine2/public_html/personal_prjct/personal_prjct") os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' os.environ['PYTHON_EGG_CACHE'] = '/home/muttine2/.python_egg_cache' import django.core.handlers.wsgi _application = django.core.handlers.wsgi.WSGIHandler() def application(environ, start_response): environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO'] return _application(environ, start_response) except: import traceback trace = traceback.format_exc() def application(environ, start_response): status = '500 Internal Server Error' output = trace response_headers = [('Content-type', 'text/plain'),('Content-Length', str(len(output)))] start_response(status, response_headers) return [output] " Line 11 is the return statement I would greatly appreciate if some one could help me with this! Thanks in advance...
×
×
  • Create New...