I am trying to setup Apache and mod_wsgi on Ubuntu to run Django content. I generated a minimum project using "django-admin.py startproject mysite" creating the project in my home folder. Running the development server works and shows the "get started" page. But the "production" setup returns "Internal Server Error". The Apache error.log file reports:
ImportError: Could not import settings 'mysite.settings' (Is it on sys.path? Does it have syntax errors?): No module named mysite.settings My /etc/apache2/httpd.conf file has one line: WSGIScriptAlias / /home/steve/mysite/apache/django.wsgi And the file /home/steve/mysite/apache/django.wsgi has 6 lines: import os import sys sys.path.append('/home/steve/mysite') os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() Any idea what I am doing wrong? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---