Ask Your Question

klacey's profile - activity

2016-08-18 08:20:00 -0600 received badge  Student (source)
2016-08-17 06:54:10 -0600 received badge  Editor (source)
2016-08-15 18:17:15 -0600 asked a question How can I run a Django website in production with wsgi

I have searched the web and setup virtual web but still cannot get wsgi and python to run in production with Python 2.7 on Apache in Fedora 23. The Django web server runs from the manage.py runserver command but I cannot serve web pages through Apache.

Background.
Moodle website running at /var/www/html/moodle - no issues need to keep running.
Django code is at /var/www/myapp/myproject
settings.py is at /var/www/myapp/myproject/myproject/myproject
wsgi.py is at /var/www/myapp/myproject/myproject/myproject
httpd.conf has the following
WSGIScriptAlias /myapp /var/www/myapp/myproject/myproject/myproject/wsgi.py
Alias /myapp/static /var/www/myapp/myproject/myproject/static
AddType text/html .py
<directory ⁄var⁄www⁄myapp⁄> order deny,allow allow from all <⁄directory>
order deny,allow
allow from all
<⁄directory>
Accessing the web page returns an Internal server error

Thanks for any help offered. Ken