#10395 closed (fixed)
GeoIP broken with [9945]
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Pull Requests: | How to create a pull request | ||
Description ¶
GeoIP was broken by [9945]
>>> from django.contrib.gis.utils.geoip import GeoIP Traceback (most recent call last): File "<console>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/contrib/gis/utils/geoip.py", line 45, in <module> if not settings._target: settings.configure() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/utils/functional.py", line 273, in __getattr__ return getattr(self._wrapped, name) AttributeError: 'Settings' object has no attribute '_target' >>> from django.contrib.gis.utils import GeoIP Traceback (most recent call last): File "<console>", line 1, in <module> ImportError: cannot import name GeoIP
Change History (10)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:5 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:6 by , 16 years ago
comment:7 by , 16 years ago
Sorry about that. I missed a couple of places in the original search-and-replace and didn't notice a key difference in your traceback. Fixed now.
comment:8 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I'm seeing this issue with r10925 and Python 2.6.
>>> from django.contrib.gis.utils.geoip import geoip Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/lib/python2.6/dist-packages/django/contrib/gis/utils/geoip.py", line 45, in <module> if not settings._target: settings.configure() File "/usr/lib/python2.6/dist-packages/django/utils/functional.py", line 273, in __getattr__ return getattr(self._wrapped, name) AttributeError: 'Settings' object has no attribute '_target'
comment:9 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
The line: if not settings._target doesn't exist in that revision, you're code somehow wasn't upgraded properly.
Note:
See TracTickets
for help on using tickets.
This was fixed in r9953.