Django 1.9 to 1.10 raises NoReverseMatch: u'en-gb' is not a registered namespace

后端 未结 5 1604
谎友^
谎友^ 2021-01-18 03:51

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:

Traceback (most recent call last):   File         


        
5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-18 04:02

    Your LANGUAGE_CODE setting is set to en_gb. Notice the underscore character. It should be en-gb.

提交回复
热议问题