Here is my dispatch.wsgi
import os, sys
sys.path.append("/home/renier/public_html/mysite");
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['PYTHON_EGG_CACHE'] = '/home/renier/.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)
and the .htacess
RewriteEngine On
RewriteBase /
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(admin_media/.*)$ - [L]
RewriteRule ^(dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ mysite/dispatch.wsgi/$1 [QSA,PT,L]
What I have deduced from setting up the mysite application is that if you get internal server errors then, there is probably something wrong with the way your Django application is being called. What I can suggest though I am sure you would have covered this as well is the following:
Check the file permissions are correct as specified in the tutorial
Check that your ROOT_URLCONF = 'urls', the default would be ROOT_URLCONF = 'mysite.urls'
You could try checking your error log, though this is not always that helpful, djbob said he would look into it