Здравствуйте пытаюсь на своем компьютере настроить связку Apache2+python+wsgi я так понимаю должны быть установлены необходимые модули и они по всей видимости есть
serrrgggeee@serrrgggeee:/etc/apache2/conf-enabled > apache2ctl -M
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php5_module (shared)
python_module (shared)
setenvif_module (shared)
status_module (shared)
wsgi_module (shared)
но в браузере я получаю содержимое index wsgi как я понимаю по какой то причине не происходит компиляция
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys, os
# если вы не используете virtualenv, то следующие три строки не нужны
virtual_env = '/home/user/example.com/python/'
activate_this = os.path.join(virtual_env, 'bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
sys.path.insert(0, '/home/user/example.com')
sys.path.insert(0, '/home/user/example.com/myproject')
os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
как можно устранить эту проблему?