I'm not making any progress on this. I have redone part 1 of the Django 1.4 tutorial, and it all works nicely with my Oracle back-end database and the development server. I'm now trying to progress this app to be served by Apache + mod_wsgi. After starting Apache, command httpd -M lists wsgi_module (shared), and syntax OK. URL
http://localhost/ shows the expected Apache test page.
I have added directive
WSGIScriptAlias / /home/jon/djangodemo/mysite/mysite/wsgi.py to /etc/httpd/conf/httpd.conf
as per one example of setting up a production site server I have found, and restarted Apache. I've made no changes to my app's wsgi.py module at this point. Now, URL
http://localhost/ displays a "500 Internal Server Error" page. The Apache error_log includes line:
ImportError: Could not import settings 'mysite.settings' (Is it on sys.path?): No module named mysite.settings
Any suggestions on how to get this working? There are a number of articles out there on how to set up a Django app for serving by Apache + mod_wsgi, with different instructions - confusing. I'm after a the simplest approach on to how to get my Django tutorial app running from a production server.
Any advice appreciated! My background is Oracle DBA/development + Python. Very little experience with configuring Apache.
Regards,
Jon