Application location: /home/cha0s/hello
Wsgi file directory: /home/cha0s/hello/apache/django.wsgi
import os import sys path = '/home/cha0s/hello' if path not in sys.path: sys.path.append(path) os.environ['DJANGO_SETTINGS_MODEULE']='hello.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
Apache file : /etc/apache2/sites_available/hello
<VirtualHost *:80> ServerName blabla.com DocumentRoot /home/cha0s/hello WSGIScriptAlias http://blabla.com /home/cha0s/hello/apache/django.wsgi <Directory /home/cha0s/hello/apache> Order allow,deny Allow from all </Directory> </VirtualHost>
So the issue is it type of works , however it opens directory much like a listing of files , nothing like a django website. Any idea what is wrong? I just read somewhere on stackoverflow that mod_python might be the issue , and so i erased it .
WSGIScriptAlias lines are nonsense. It is a path, not really a URL. Ought to be:
WSGIScriptAlias / /home/cha0s/hello/apache/django.wsgi
Also, you've misspelled
DJANGO_SETTINGS_MODULE within the wsgi file.
You have to add '/home/cha0s' to sys.path.
Also go watch:
This describes other activities you might have got wrong, consider you do not explain exactly what the error is you are receiving, difficult to tell what else is damaged.