﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22948	Django 1.6, Python3.4, apache2.4, mod_wsgi not working	tom@…	nobody	"I use the default apache2 configuration from the django docs:


{{{
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com

<Directory /path/to/mysite.com/mysite>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
}}}

together wit this wsgi file:

{{{
import os, sys
sys.path.append('/path/to/mysite.com/')
sys.path.append('/path/to/mysite.com/mysite/')
os.environ.setdefault(""DJANGO_SETTINGS_MODULE"", ""mysite.settings"")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
}}}

results in the following apache2 error:


{{{
Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
Traceback (most recent call last):
   File ""/usr/lib/python3.4/threading.py"", line 1288, in _shutdown
     assert tlock is not None
AssertionError: 
 Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
 Traceback (most recent call last):
   File ""/usr/lib/python3.4/threading.py"", line 1288, in _shutdown
     assert tlock is not None
 AssertionError: 
 Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
 Traceback (most recent call last):
   File ""/usr/lib/python3.4/threading.py"", line 1288, in _shutdown
     assert tlock is not None
 AssertionError: 
(...)
[Thu Jul 03 10:22:55.466070 2014] [mpm_prefork:notice] [pid 7939] AH00169: caught SIGTERM, shutting down
}}}

The page loads forever, but never displays anything. System: Ubuntu 14.04/ 64bit + libapache2-mod-wsgi-py3
"	Bug	closed	Python 3	1.6	Normal	fixed	python3, apache2, mod_wsgi		Unreviewed	0	0	0	0	0	0
