It tries to set the module's version to the version of the imported
library, like so:
`__version__ = json.__version__`
But it uses a `from json import *` instead of a `import json`, so you get
a NameError.
--
Ticket URL: <https://code.djangoproject.com/ticket/20560>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
I've put the fix in a pull request:
https://github.com/django/django/pull/1243
The fix mirrors the approach taken for importing simplejson.
I have not included any tests because I'm not sure how such a test should
be written since its dependent on the underlying system. I'd be happy to
write one if someone could suggest a good way to do so.
--
Ticket URL: <https://code.djangoproject.com/ticket/20560#comment:1>
Comment (by aburgel):
My bad. I didn't see #18022.
Clearly this is fixed in 1.5 and up. So please consider this bug report a
request to backport the fix to 1.4.
--
Ticket URL: <https://code.djangoproject.com/ticket/20560#comment:2>
* status: new => closed
* resolution: => duplicate
Comment:
Nevermind. The fix is not necessary, #18022 says that the json library is
imported correctly.
--
Ticket URL: <https://code.djangoproject.com/ticket/20560#comment:3>