﻿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
543	[patch] Django under mod_python broken	sune.kirkeby@…	Adrian Holovaty	"{{{
Mod_python error: ""PythonHandler django.core.handlers.modpython""

Traceback (most recent call last):

  File ""/usr/local/opt/python/lib/python2.4/site-packages/mod_python/apache.py"", line 287, in HandlerDispatch
    log=debug)

  File ""/usr/local/opt/python/lib/python2.4/site-packages/mod_python/apache.py"", line 457, in import_module
    module = imp.load_module(mname, f, p, d)

  File ""/home/sune/django/django/core/handlers/modpython.py"", line 1, in ?
    from django.core.handlers.base import BaseHandler

  File ""/home/sune/django/django/core/handlers/base.py"", line 1, in ?
    from django.utils import httpwrappers

  File ""/home/sune/django/django/utils/httpwrappers.py"", line 5, in ?
    from django.conf.settings import DEFAULT_MIME_TYPE

  File ""/home/sune/django/django/conf/settings.py"", line 29, in ?
    raise EnvironmentError, ""Environment variable %s is undefined."" % ENVIRONMENT_VARIABLE

EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined.
}}}

This is what you get, if you do not set DJANGO_SETTINGS_MODULE in your environment before starting
your mod_python-Apache. Some recent changeset did not heed the warning at the top of the modpython.py.
I'll attach a patch in a moment."	defect	closed	Core (Other)		blocker	fixed	mod_python modpython		Unreviewed	1	0	0	0	0	0
