Hello to all. I am new baby to python and django. I have installed the django-1.21 in my pc. I am able to create mysite as mentioned in tutorial and mysite also works fine using django web server (on port 8000), but now I am trying to run mysite on my apache server but I am facing problems. Apache is giving me internal server error. Below is my configurations-:
Path to mysite-: /django/mysite Apache httpd.conf configuration-: Alias /media/ /usr/local/lib/python2.6/site-packages/django/contrib/admin/media/ <Directory /usr/local/lib/python2.6/site-packages/django/contrib/admin/media/> Options Indexes Order deny,allow Allow from all </Directory> WSGIScriptAlias /django/ /django/mysite/apache/django.wsgi <Directory /django/mysite/apache/> Options Indexes Order deny,allow Allow from all </Directory> Contents of /django/mysite/apache/django.wsgi file-: import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() sys.path.append('/django/') Also, I noticed one thing that when I write following content in django.wsgi file, it is working fine i.e displaying Hello World on webpage but with above contents of django.wsgi file, apache is giving Internal Server Error. django.wsgi test content-: def application(environ, start_response): status = '200 OK' output = 'Hello World!' response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_headers) return [output] Please help me to resolve this error. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.