Django 1.9 to 1.10 raises NoReverseMatch: u'en-gb' is not a registered namespace
<p>I am trying to update my 1.9 application to 1.10 and I am getting the following error on running all my unit tests:</p>

<pre><code>Traceback (most recent call last):   File "/home/â¦/tests/views/test_configurator.py", line 261, in test_view_configurator_post
    args=[self.configurator.id]),   File "/home/â¦/.virtualenvs/intranet/lib/python2.7/site-packages/django/urls/base.py", line 87, in reverse
    raise NoReverseMatch("%s is not a registered namespace" % key) NoReverseMatch: 'en-gb' is not a registered namespace
</code></pre>

<p>My <code>setting.py</code> file contains the following:</p>

<pre><code>LANGUAGE_CODE = 'en-gb'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
TIME_ZONE = 'Europe/London'
</code></pre>

<p>What am I missing?</p>

<p>Your <code>LANGUAGE_CODE</code> setting is set to <code>en_gb</code>.. Notice the underscore character.. It should be<code>en-gb</code>.</p>

python django internationalization