#8703: Development server fails to load settings
------------------------------------------------+---------------------------
Reporter: benspaulding | Owner: nobody
Status: new | Milestone:
Component: django-admin.py runserver | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------------+---------------------------
Comment (by kmtracey):
Shortening of the environment variable is happening on this line:
{{{
os.environ['DJANGO_SETTINGS_MODULE'] = '%s.%s' % (project_name,
settings_name)
}}}
of source:django/trunk/django/core/management/__init__.py in
setup_environ(). So, first time settings are loaded all is OK, but
subsequent times the environment variable has been shortened to the last
two parts, and subsequent loads don't work. Why are settings loaded
multiple times? I think they are loaded for each thread...at any rate
specifying `--noreload` makes the problem go away. I'm not comfortable
enough with the code involved here to even suggest a fix.
--
Ticket URL: <http://code.djangoproject.com/ticket/8703#comment:2>
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
-~----------~----~----~----~------~----~------~--~---