﻿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
545	Checkin [670] breaks modpython 	robert@…	Adrian Holovaty	"Due to a chain of imports, the environment never gets updated in modpython after [671]
 
Mod_python error: ""PythonHandler django.core.handlers.modpython""

Traceback (most recent call last):

  File ""/usr/lib/python2.3/site-packages/mod_python/apache.py"", line 287, in HandlerDispatch
    log=debug)

  File ""/usr/lib/python2.3/site-packages/mod_python/apache.py"", line 457, in import_module
    module = imp.load_module(mname, f, p, d)

  File ""/usr/lib/python2.3/site-packages/django/core/handlers/modpython.py"", line 1, in ?
    from django.core.handlers.base import BaseHandler

  File ""/usr/lib/python2.3/site-packages/django/core/handlers/base.py"", line 1, in ?
    from django.utils import httpwrappers

  File ""/usr/lib/python2.3/site-packages/django/utils/httpwrappers.py"", line 5, in ?
    from django.conf.settings import DEFAULT_MIME_TYPE

  File ""/usr/lib/python2.3/site-packages/django/conf/settings.py"", line 29, in ?
    raise EnvironmentError, ""Environment variable %s is undefined."" % (ENVIRONMENT_VARIABLE)

EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined."	defect	closed	Core (Other)		critical	duplicate			Unreviewed	0	0	0	0	0	0
