Skip to content

Commit

Permalink
[1.0.X] Final pieces (he says, hopefully) of r9945 changes.
Browse files Browse the repository at this point in the history
Fixed "django-admin.py diffsettings" and some GeoDjango stuff.
Refs #10395.

Backport of r9960 and r9961 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9962 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Mar 3, 2009
1 parent 9e6d32e commit dcb0884
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django/contrib/gis/utils/geoip.py
Expand Up @@ -42,7 +42,7 @@
from ctypes import c_char_p, c_float, c_int, Structure, CDLL, POINTER
from ctypes.util import find_library
from django.conf import settings
if not settings._target: settings.configure()
if not settings.configured: settings.configure()

# Creating the settings dictionary with any settings, if needed.
GEOIP_SETTINGS = dict((key, getattr(settings, key))
Expand Down
4 changes: 2 additions & 2 deletions django/core/management/commands/diffsettings.py
Expand Up @@ -16,9 +16,9 @@ def handle_noargs(self, **options):
from django.conf import settings, global_settings

# Because settings are imported lazily, we need to explicitly load them.
settings._import_settings()
settings._setup()

user_settings = module_to_dict(settings._target)
user_settings = module_to_dict(settings._wrapped)
default_settings = module_to_dict(global_settings)

output = []
Expand Down

0 comments on commit dcb0884

Please sign in to comment.