Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #4884 -- Fixed an initialisation problem when assigned to setti…

…ngs before

accessing them. Thanks, Noam Raphael.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 41a6e41777a9d02cfcbfed534ebf4199158c7030 1 parent 5dd9a2a
@malcolmt malcolmt authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/conf/__init__.py
View
2  django/conf/__init__.py
@@ -37,6 +37,8 @@ def __setattr__(self, name, value):
# __setattr__(), which would be an infinite loop.
self.__dict__['_target'] = value
else:
+ if self._target is None:
+ self._import_settings()
setattr(self._target, name, value)
def _import_settings(self):
Please sign in to comment.
Something went wrong with that request. Please try again.