#3687: django.conf.settings reads DJANGO_SETTINGS_MODULE at import time
--------------------------------------+-------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Template system
Version: 0.95 | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
--------------------------------------+-------------------------------------
Changes (by mtredinnick):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Can you provide a few more details on how you are triggering this error,
please? I cannot repeat it; I can happily import
{{{django.conf.settings}}} without seeing this error. My test is
{{{
#!python
.-([EMAIL PROTECTED] 20:05:28) ~
`--> python
Python 2.4.3 (#1, Oct 23 2006, 14:19:45)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from django.conf import settings
>>>
}}}
Does that work for you?
You will see the error if you try to do absolutely anything with settings
before calling {{{configure()}}}, but a simple import before using it
should work.
--
Ticket URL: <http://code.djangoproject.com/ticket/3687#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---