/home/lin/.virtualenvs/jukebox/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py in _fetch
# We want to ensure that, for example, "en-gb" and "en-us" don't share
# the same translation object (thus, merging en-us with a local update
# doesn't affect en-gb), even though they will both use the core "en"
# translation. So we have to subvert Python's internal gettext caching.
base_lang = lambda x: x.split('-', 1)[0]
if base_lang(lang) in [base_lang(trans) for trans in _translations]:
res._info = res._info.copy()
...
res._catalog = res._catalog.copy()
def _merge(path):
t = _translation(path)
if t is not None:
if res is None:
After the start of the service,
jukebox runserver 0.0.0.0:9999
Prompt for access `AttributeError at /'NoneType' object has no attribute '_info'
Request Method: GET Request URL: http://0.0.0.0:9999/ Django Version: 1.4.5 Exception Type: AttributeError Exception Value:
'NoneType' object has no attribute '_info'
Exception Location: /home/lin/.virtualenvs/jukebox/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py in _fetch, line 147 Python Executable: /home/lin/.virtualenvs/jukebox/bin/python Python Version: 2.7.12 Python Path:
['/home/lin/.virtualenvs/jukebox/bin', '/home/lin/.virtualenvs/jukebox/lib/python2.7', '/home/lin/.virtualenvs/jukebox/lib/python2.7/plat-x86_64-linux-gnu', '/home/lin/.virtualenvs/jukebox/lib/python2.7/lib-tk', '/home/lin/.virtualenvs/jukebox/lib/python2.7/lib-old', '/home/lin/.virtualenvs/jukebox/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/lin/.virtualenvs/jukebox/local/lib/python2.7/site-packages', '/home/lin/.virtualenvs/jukebox/lib/python2.7/site-packages', '/home/lin/.virtualenvs/jukebox/local/lib/python2.7/site-packages/jukebox', '/home/lin/.jukebox', '/home/lin/.jukebox']
Server time: Sat, 3 Dec 2016 07:49:03 +0100
/home/lin/.virtualenvs/jukebox/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py in _fetch
`